New

11 tools. $557.98 if bought one by one. 5 new Premium desks inside.$557.98 one by one

$97 once$97See all 11See it
Pine Pro Library · v2.1.0

Camarilla Desk Camarilla pivot indicator for TradingView

At the open it draws the Camarilla map from the previous session, checks which of twelve named plays can arm, and follows each from its setup to a target, a stop or the bell.

Ribbon17:15
RTH
HIGHER · WIDE
NOW
WAIT SESSION
NEXT
Wait for US cash
ATR
Daily14 100.41
Closed bars onlyCamarilla Desk 2.1.0

Session 1 · a play reaches ACTIVE

Simulated 15-minute gold bars, not a real market, run through Camarilla Desk's default rules, simplified for the browser: the map from the previous 09:30–16:00 New York session (the script reads it from one-minute bars), a daily ATR(14) from simulated daily bars, and twelve plays inside that window. The chart draws the script's Map: the session's seven levels, yesterday's before 09:30, and the tracked plan; its TRIGGER highlight and the H2/L2 band are left out. Session 1 is the first simulated session where a play reaches ACTIVE; Another session plays the next simulated sessions where a play arms, in order, whatever it does next.

Read as text
Times are bar opens on the simulated New York clock. The words are the script's own states and reasons; R is a reference distance, not a fill.
TimeEventPrices
09:15Window opens under the previous session's mapClose 4036.09
09:30Map set · RTH · HIGHER · WIDEL3 3966.08 · PC 3984.66 · H3 4003.24
09:45HF SHORT · ARMED · Actual bar range touched the reference levelclose < 4052.9952796614
09:45HF ▼ ENTRY · ACTIVE · H6 outer touch + recovery; close 4046.05 < H6 4052.9952796614Entry 4046.05 · stop 4057.65 · target 4021.82
15:45HF · EXPIRED · Decision session ended · no fill inferredEntry 4046.05 · no fill inferred

Full Pine v6 source in Pine Pro Library. It draws on your chart; you place the trades.

One play, start to end.

A play is a candidate from the open, arms on its setup, turns ACTIVE on a confirming close, and ends at its target, its stop or the bell.

EXPIRED

HE · EXPIRED: Decision session ended · no fill inferred.

  • Candidate: its opening, context and width checks pass: true, 09:30 · HE SHORT · gates pass
  • Armed: its setup was seen: true, 14:15 · setup at H4 4353.74
  • Active: a confirming close set the plan: true, 15:30 · entry ref 4352.86
  • Ended: at the target, the stop or the bell: true, 15:45 · HE · EXPIRED

The same simulated 15-minute gold, simplified rules, one play with today's map. It is the first play in the replay's windows, in order, that is a candidate, arms, confirms and ends on four different closes, so each phase holds on screen. The state words and reasons are the script's own.

Candidate

Three checks

The opening inside the play's range, the context and the width, all at 09:30.

Setup

Its own rule

A touch and a close back (A, F), a closed break then a retest (B), an opening between the fourth and sixth levels (C, D), a close beyond then a failure (E).

Plan

Frozen

The confirming close is the entry reference; the stop and target freeze with it, at 1R or more.

Once

One episode

Each play arms once a session, whatever it does next; the last bar can end a plan but never start one.

The open picks the plays.

The 09:30 opening, the context and the width decide which of the twelve plays can arm today.

Context
Width
4,103.00
3 of 12 plays are candidates HA, HB, HE can arm today; the others wait for the next map.
  • HA candidate
  • LA ✗ context
  • HB candidate
  • LB ✗ context
  • HC ✗ opening
  • LC ✗ context
  • HD ✗ opening
  • LD ✗ context
  • HE candidate
  • LE ✗ context
  • HF ✗ opening
  • LF ✗ context

A drawn example, not the simulation: only the opening, the context and the width change. Each verdict is the desk's own prerequisite rule.

Context

Higher or Lower

Higher when the map's close sits more than two percent of the ATR above the close before it; H plays need Higher, L plays Lower.

Width

H3 to L3

Against the session before: A and E need Wide or Similar, B, C and D Narrow or Similar, F any.

Opening

Its range

Each play has its own range for the opening, edges included; outside it, the play waits for the next map.

Neutral

Off

A change within two percent of the ATR is Neutral; by default no play runs then.

Target, stop, or the bell.

A later bar settles an ACTIVE plan at its target or its stop; the session's last bar ends it with no fill.

A later bar reaches the target, and the plan ends there. HA ✓ TARGET: Reference destination touched on a later bar, +1.36R.

A drawn example, not the simulation: the film's run holds no open past the stop and no bar touching both. R is a reference distance, not a fill.

Stop

Past structure

An A long's stop sits one tick under the lower of L4 and its setup's low; each family has its own.

Target

The map

An A long aims at H3, a B, C or D long at H6; both round to the tick, and the plan stands only at 1R or more.

Order

Stop first

An open past a level settles first; a bar touching both counts the stop.

Bell

No fill

At the session's end an ACTIVE plan is EXPIRED; no fill is inferred.

Paste it. Run it.

Two files, the complete v2.1.0, ready for TradingView's Pine Editor.

On a phone? Send this page to your desktop.

  1. Copy the indicatorThe button copies the whole file.
  2. Paste it in the Pine EditorOpen a new indicator, replace the sample, save.
  3. Add it to a chartStandard 1- to 60-minute candles with enough history; read the Ribbon before a play.
camarilla-desk.pine · 1,805 linesDownload camarilla-desk.pine
//@version=6// …// CARD: market/timeframe — standard time-based intraday bars, 1m through 1h.// CARD: idea — confirmed play states, frozen prior-source map and reference plans.// ACTIVE denotes an observed hypothesis, not a filled order or a validated edge.// See docs/engine-contract.md for exact rules and docs/build-report.md for evidence. indicator("Camarilla Desk · Open Source", "Cam Desk", overlay = true, behind_chart = false, max_lines_count = 220, max_labels_count = 160, max_boxes_count = 50, max_bars_back = 3000)const string CAM_VERSION = "2.1.0"const bool CAM_IS_LAB = false // PUBLIC LITE BASELINE PREREQUISITES · original closed-bar execution · no Premium parity.string CAM_FORMULA = "expanded6-v1"string camSourceGroup = "Source and decision clock"string sourceMode = input.string("Market default", "Pivot source", options = ["Market default", "Auto RTH/ETH", "RTH", "ETH", "Exchange daily", "Selected session"], group = camSourceGroup, display = display.none, tooltip = "Market default explicitly chooses RTH for non-crypto and Exchange daily for crypto. RTH/ETH require complete observed one-minute windows. Optional Auto RTH/ETH requires complete pre/postmarket coverage and freezes at the opening; it never silently falls back. Exchange daily remains a provider-defined daily/settlement source, never cash RTH.")string decisionMode = input.string("Auto", "Decision window", options = ["Auto", "US cash", "Exchange day", "Custom"], group = camSourceGroup, display = display.none, tooltip = "Auto uses Exchange day for crypto and US cash 09:30–16:00 New York for other assets. Set Custom for another exchange or a futures cash window.")string customSession = input.session("0930-1600", "Custom decision interval", group = camSourceGroup, active = decisionMode == "Custom", display = display.none)string customTimezone = input.string("America/New_York", "Custom IANA time zone", group = camSourceGroup, active = decisionMode == "Custom", display = display.none, tooltip = "Use an IANA region such as America/New_York. True overnight intervals use the ending trading weekday. Equal start/end is 24 hours and uses the starting calendar weekday.")bool customWeekdays = input.bool(true, "Custom weekdays only", group = camSourceGroup, active = decisionMode == "Custom", display = display.none)string regularSession = input.session("0930-1600", "RTH source interval", group = camSourceGroup, display = display.none)string regularTimezone = input.string("America/New_York", "RTH source IANA zone", group = camSourceGroup, display = display.none, tooltip = "Cash-session definition, including futures emulation. It is independent from the exchange's definition of regular trading.")string extendedClock = input.string("Auto", "ETH source clock", options = ["Auto", "Custom"], group = camSourceGroup, display = display.none, tooltip = "Auto: US equities 04:00–20:00 New York, futures 18:00–17:00 New York, crypto exchange day. Other venues require a Custom source clock.")string extendedSession = input.session("1800-1700", "Custom ETH interval", group = camSourceGroup, active = extendedClock == "Custom", display = display.none)string extendedTimezone = input.string("America/New_York", "Custom ETH IANA zone", group = camSourceGroup, active = extendedClock == "Custom", display = display.none)string closeMode = input.string("Match source", "Pivot close selection", options = ["Match source", "RTH", "ETH", "Exchange daily"], group = camSourceGroup, display = display.none)float switchingTolerance = input.float(2, "Auto excursion · % selected ATR", minval = 0, maxval = 100, step = 0.1, group = camSourceGroup, active = sourceMode == "Auto RTH/ETH", display = display.none)string camPrerequisiteGroup = "Public Lite baseline · confirmed prerequisites"float rangeThresholdPct = input.float(2, "Neutral close change · % selected ATR", minval = 0, maxval = 100, step = 0.1, group = camPrerequisiteGroup, display = display.none)float widthThresholdPct = input.float(2, "Similar width tolerance · %", minval = 0, maxval = 99, step = 0.1, group = camPrerequisiteGroup, display = display.none)bool allowNeutral = input.bool(false, "Allow both directions in Neutral", group = camPrerequisiteGroup, display = display.none)bool smaGate = input.bool(false, "Original SMA close confirmation", group = camPrerequisiteGroup, display = display.none, tooltip = "Optional original filter: confirmed long closes above the chart SMA, short below. This does not reproduce an undisclosed Premium SMA trigger.")int smaLength = input.int(20, "Chart SMA length", minval = 2, maxval = 300, group = camPrerequisiteGroup, active = smaGate, display = display.none)

No coding needed.

View the full code

Strategy Lab · optional

camarilla-desk-strategy.pine

A separate emulator for TradingView's Strategy Tester, with its own fills, sizing and costs; a chart reference is not its fill.

Download camarilla-desk-strategy.pine

No coding needed.

View the full code

01 · Library

Pine Pro Library

The full source: read it, change it, keep it.

02 · Pine v6

Two files

The indicator draws; the Strategy Lab emulates fills and costs on a second chart.

03 · Your chart

Any market

Crypto maps from the daily bar; other markets from 09:30–16:00 New York.

04 · Alerts

Two named

A play activated and an episode ended, plus one JSON envelope for the events you select.

All eleven. Once.

Eleven things we make, one payment, and nothing that renews.

Complete Suite Everything on the list, one payment

$97, one payment.

Renews never Full source 7-day refund before download

The Suite adds no Camarilla features; it includes Pine Pro Library.

What's insideOn its own
  1. Drift Desk PremiumThe bigger trend, the pullback, size first.$49.00
  2. Opening Range Desk ProOpening ranges graded A to C, markets in play first.$49.00
  3. Signal Desk PremiumA 20-market Radar, sized tickets, a daily lock.$49.00
  4. Breakaway Desk PremiumA Trend Radar for six crypto perpetuals on 4-hour candles.$49.00
  5. Gold Sweep Desk ProGold's session pools, the plan before the window.$49.00
  6. Pine Complete Bundle11 Pine v6 tools, every source included.$46.00
  7. Pine Evolution LabA local strategy factory that kills weak ideas.$79.00
  8. MTR FullSystemEAA complete MT5 EA: all 21 source files.$49.00
  9. TradeLensA self-hosted journal whose AI coach prices your leaks.$47.00
  10. The WatchA self-hosted paper-trading board.$59.00
  11. AI Starter PacksPrompt Vault, Fixer, Builder Lite, Chart Reader.$32.98
All eleven, one by one$557.98
The Suite$97

Straight answers.

How do I get the code?

The page, the films and the manual are open to everyone. The code, both files, is in Pine Pro Library: $49 once for every desk and every update, or included in the Complete Suite. Sign in to copy or download.

Does it have an edge?

No measured edge. Its checks cover how the program behaves, not trading results, and ACTIVE is a reference, not an order. What it can and cannot tell you says where it stops.

Why was a confirmed play REJECTED?

Its plan failed on the confirming close: under 1R after rounding, a target on the wrong side, or risk under one tick. The episode is spent; it does not chase another close.

What does the Suite add?

No Camarilla features. It holds the other things we make, for one payment, Pine Pro Library among them, so this desk's code comes with it.

We, ProEA Lab, build Camarilla Desk. The films run its rules, simplified, on simulated candles, not market data; R is a reference distance, not a fill. Not financial advice.

Full manual.

Every rule, setting and check, one topic at a time.

Open the full manualClose the full manual
CAMARILLA DESK v2.1.0

Watch the level.Wait for the close.

Read the pivot map and session context. Follow each confirmed episode with its original entry, stop and target.

Seven visible levels · fourteen named plays · full source in Pine Pro Library

ILLUSTRATED EXAMPLEHA · L3 bounce
H3 · destination107.75Closed above103L3 · frozen level102.25
1 Touch L32 Close above3 References fixed
Supplied H110/L100/C105, prior H107/L97/C102, ATR(14)10: Higher, Similar, valid opening, no bad OPEN. This illustration calculates neither sessions nor ATR. ACTIVE is not an order.
IN THIS MANUAL · Try, understand, install

What is Camarilla Desk?

Camarilla Desk is a TradingView indicator in Pine Pro Library that builds a frozen session map from completed price data and tracks fourteen play hypotheses. It separates the source used for levels from the session clock used for decisions. Qualifying episodes receive fixed entry, stop and target references; these observations are not confirmed order fills.

Which Camarilla levels does the default map show?

The default map shows H6, H4, H3, previous close, L3, L4 and L6. Levels come from the selected completed source and freeze at the decision opening; they are Camarilla references, not floor pivots or CPR. See the map formulas

Why does Camarilla Desk show DATA WAIT or OPEN UNKNOWN?

The map needs complete source coverage, a valid ATR basis and a known decision opening. Missing boundaries, stale sources or incomplete sessions can block interpretation. Check the resolved source and clock before treating a waiting row as a setup. Check source and session coverage

Does a Higher Camarilla play always mean a long trade?

No. H names the Higher context, while SIDE identifies the direction of the hypothesis. Some Higher plays point short. Read the opening gate, approach region and confirmation rule together; the context label alone does not define an entry. Read the common play questions

00 · WHY THIS TOOL EXISTS

Give today's candles a map.

Camarilla starts with earlier prices and calculates places to watch. This desk explains how price behaves at those places, then checks whether a named play qualifies. First, see where the lines come from.

100105110Earlier sourceWait for source close
High so far 110Low so far 100Source open
Illustrative prices · completed source and known decision opening supplied · three map levels shown · no activation or fill inferred.
00 · 1 / 6

Start with a completed source.

The map comes from an earlier trading period. Here, its candles establish a high and low. While that period is still open, its final close is not known.

01 · START WITH ONE PLAY
CHANGE THE CANDLE. SEE WHY.

Does this candle complete the play?

Change the close and wick. See the rule respond while the Camarilla map stays still.

Earlier candles → test candleTest close 103
Destination107.75Activation reference103L3 · watch here102.25Stop reference99.25120111.25102.593.7585
Reference riskReference distanceDrag the blue close ↕

Illustrated prices · four closed candles · fixed scale while you drag.

Watch the same candle change
103
1.25
How the calculation works & more controls
105
102
10
10
1 R

Opening, source and ATR edits restart this hypothetical replay. The earlier range is centred on its close. Source completeness and the ATR scalar are supplied assumptions: this lesson does not reconstruct a full session feed, ATR seed or missing-session recovery.

ATR Market default: observed RTH for futures unless the decision clock is Exchange day; Provider daily otherwise. This completed ATR(14) is supplied, not calculated or matched to Premium.

Candidate passes context, width and inclusive opening gates without a bad-OPEN latch. Approaching adds the strict price region. Neither is ACTIVE. Similar includes the two-percent width tolerance; ATR zero is unavailable. This lesson fixes structural risk, SMA off and one episode per session.

Explore HA/HB/HE here; all fourteen rules appear below. Recovery accepts either candle-body direction. Stops round outward and targets toward entry. Outcomes begin after activation, with opening gaps then stop-first touches. No broker fill is simulated.

Illustrative inputs · changing a slider recalculates this example · no market feed

THE RULES ARE OPEN

Read each opening gate, setup, confirming close and ending.

Read the complete rules →
02 · READ THE REAL CHART

Map. Context. Then the confirmed episode.

Default Top Left Ribbon: source, range, width. Trading Dark keeps seven levels visible. Open HUD or Inspector for detail.

RIBBON

Source · range · width

Read all three before following a play. SOURCE and ATR basis remain separately inspectable.

TRACKED

The episode stays on its candles

Entry arrows, shaded reference regions and named outcomes identify the episode. Ended geometry stops at its recorded end, not a new entry.

INSPECTOR

Selection changes explanation

Inspect any code’s prerequisites and NEXT. Manual selection cannot switch the tracked plan. Candidate, approach, armed and active remain distinct.

LAST CLOSED

Time belongs beside price

The detailed HUD dates the committed close and map. Display changes cannot change qualification or reference prices.

Actual Camarilla Desk v2.1.0 on ETHUSDT 15m: seven labelled levels, a Daily/Higher/Wide Ribbon with no qualifying setup, and ended HB history.
Actual ETHUSDT 15m · v2.1.0 defaults · 7 September 2026. Daily/Higher/Wide; no qualifying setup. Daily ATR(14) 94.85; closed 15:00 UTC. HB entry/STOP is ended history. Unmodified capture.
Labelled synthetic Camarilla Desk v2.1 UI example: current LA approaching, two separate ended LA episodes, and the full seven-level map.
Synthetic UI example, not a market signal. The retained banner labels invented LA states: approaching now, separate episodes ended TARGET and STOP. Each keeps its own markers and references.
03 · ADD THE TOOL

Indicator first. Strategy Lab separately.

Complete sources in Pine Pro Library; sign in to copy or download. Use the installation walkthrough. Save each source separately.

  1. Open Pine Editor on a standard TradingView candle chart.
  2. Paste the indicator source, then Save and Add to chart.
  3. Read the source and opening status before following a play. Use Strategy Lab separately when inspecting simulated fills and costs.

Camarilla Desk indicator

Seven-level map, context ribbon, explicit ATR basis and frozen reference episodes.

↓ Download camarilla-desk.pine

v2.1.0 · SHA256 93e60db80ed8a14c475e5812404a0f50016edae741d122202b33db86b620664b

camarilla-desk.pine · Pine v6
Read the complete source

Camarilla Desk Strategy Lab

Optional broker emulator: independent fills, occupancy, sizing and costs; no claimed edge.

↓ Download camarilla-desk-strategy.pine

v2.1.0 · SHA256 16d881cad4a2acb7ab67a286c1b9b5e19e9d678f974afe1cb72c014a1f694e5f

camarilla-desk-strategy.pine · Pine v6
Read the complete source

Source identity manifest · Licence. Save the two scripts separately; adding the indicator does not run the Lab.

Strategy Lab separately emulates selected activations, occupancy, next-available fills, frozen brackets, sizing and costs. A HUD reference is not its fill. Verify settings and source-ready dates first.

THE RULES ARE OPEN

Read each opening gate, setup, confirming close and ending.

Read the complete rules →
04 · GO DEEPER WHEN YOU NEED IT

The complete tool, one topic at a time.

Open the question you are working on. All original rules, experiments and settings remain here.

Map formula, close context and width

Completed sources first. Today’s evidence second.

Map, opening and completed ATR freeze for the decision session.

SEVEN LEVELS

A complete ladder by default

H6, H4, H3, PC, L3, L4 and L6 have solid lines and right-side price tags. PC is the selected prior close. H/L also means R/S; H2/L2 are not floor-pivot CPR.

CLOSE-DELTA CONTEXT

Higher, Lower or Neutral

Higher means selected close exceeds its predecessor by more than two percent of frozen ATR. Lower mirrors it. Equality is Neutral; Neutral defaults off.

WIDTH GATE

Similar includes the boundary

Compare H3−L3 widths. Ratios 0.98–1.02 are Similar, inclusive. A/E require Wide or Similar; B/C/D Narrow or Similar; F/G any valid width. Band overlap is separate context.

The expanded-six formula

D = H − L; PC = selected C. H2/L2 = C ± 1.1D/6; H3/L3 = C ± 1.1D/4; H4/L4 = C ± 1.1D/2; H6 = (H/L)C; L6 = 2C − H6. H5 = H4 + 1.168(H4 − H3), with L5 mirrored, is audit-only.

Original sources must be positive and coherent; an independent close may lie outside chosen H/L. A needs valid inner geometry; other families also require outer levels.

Source, decision clock and ATR

SOURCE builds the map. CLOCK controls the plays.

MARKET DEFAULT

Crypto daily; other markets RTH

Crypto uses completed Exchange daily data. Non-crypto uses configured RTH, initially 09:30–16:00 New York. A futures provider daily bar is never relabelled cash RTH.

DECISION AUTO

24/7 or US cash

Crypto follows Exchange day. Others use US cash. RTH/ETH intervals, custom sessions and IANA timezones are explicit; configure other exchanges deliberately.

INDEPENDENT CLOSE

Match source, RTH, ETH or daily

H/L and close can use separate source pairs. ATR has its own basis and timestamp, independent of pivot selection.

OPEN UNKNOWN means wait. One-minute opening and chart boundary coverage must be known; loading mid-session cannot certify missing bad-OPEN history.

ATR basis: Provider daily or observed RTH session

ATR Market default selects observed RTH-session ATR(14) for futures unless the decision clock is Exchange day; Provider daily ATR(14) otherwise. Explicit selections override. RTH true ranges use complete sessions, not chart candles.

Fourteen complete observed RTH sessions seed the mean true range, then Wilder smoothing updates it. An observed incomplete or malformed session resets the chain; entirely absent dates are skipped. Missing, nonpositive or more than seven elapsed days old means ATR WAIT without fallback. Basis, value, accepted timestamp, chain start and sample count freeze at decision opening. This aggregation is not verified Premium private-formula parity.

Strict Auto RTH/ETH is opt-in

Auto requires complete aligned pre/postmarket windows, coherent source pairs and ATR. Excursion strictly beyond the ATR tolerance chooses ETH; equality chooses RTH. Missing coverage blocks it. There is no silent fallback.

Market default needs no extended-hours data. Auto freezes at decision opening.

Coverage, coarse charts and freshness

RTH/ETH/Selected session require observed one-minute boundaries, continuous coverage and valid OHLC. The 100,000 minutes requested cover about 69 continuous crypto days; visible chart history can extend farther.

Source pairs must be ordered, completed by decision opening and at most seven elapsed days old. Incomplete windows occupy the slot; absent windows are not classified as holidays. Coarse charts can use a known minute opening after an observed straddled boundary; missing chart coverage blocks.

Malformed OHLC clears previous-close knowledge; clock expiry continues. Overnight weekdays follow the ending date, full local days the starting date. Repeated/skipped DST endpoints remain unverified.

All fourteen plays

Fourteen hypotheses. Separate gates and triggers.

H/L names structure, not direction. O is frozen opening; C is latest committed close. Opening intervals include equality. Approach intervals are strict. A/E accept Wide or Similar, B/C/D Narrow or Similar, F/G any valid width.

PLAY / CONTEXT / SIDEOPENING GATEAPPROACH REGIONORIGINAL SETUP → CONFIRMATIONSTRUCTURAL DESTINATION
HA · L3 bounceHigher · longL2 ≤ O ≤ H2L4 < C < PCTouch L3; close above.H3
LA · H3 fadeLower · shortL2 ≤ O ≤ H2PC < C < H4Touch H3; close below.L3
HB · H4 break + retestHigher · longL2 ≤ O ≤ H3H3 < C < H6Closed break above H4; later containing retest and close above.H6
LB · L4 break + retestLower · shortL3 ≤ O ≤ H2L6 < C < L3Closed break below L4; later containing retest and close below.L6
HC · H4 continuationHigher · longH4 ≤ O ≤ H6C > H3Approach arms; touch H4 and close above.H6
LC · L4 continuationLower · shortL6 ≤ O ≤ L4C < L3Approach arms; touch L4 and close below.L6
HD · L4 counterHigher · shortL6 ≤ O ≤ L4C < L3Approach arms; touch L4 and close below.L6
LD · H4 counterLower · longH4 ≤ O ≤ H6C > H3Approach arms; touch H4 and close above.H6
HE · H4 failureHigher · shortL2 ≤ O ≤ H3H3 < C < H6Close above H4 arms; later close below confirms failure.L4
LE · L4 failureLower · longL3 ≤ O ≤ H2L6 < C < L3Close below L4 arms; later close above confirms failure.H4
HF · H6 rejectionHigher · shortH4 ≤ O ≤ H6C > H4Touch H6; close below.Wide: H4; otherwise PC
LF · L6 rejectionLower · longL6 ≤ O ≤ L4C < L4Touch L6; close above.Wide: L4; otherwise PC
HG · L6 rejectionHigher · long · optionalL6 ≤ O ≤ PCC < L4Touch L6; close above. G defaults off.Wide: L4; otherwise PC
LG · H6 rejectionLower · short · optionalPC ≤ O ≤ H6C > H4Touch H6; close below. G defaults off.Wide: H4; otherwise PC

A touch means low ≤ tier ≤ high. A wrong-side gap is not a touch. Previous contained close starts at the known opening. B requires a strict closed crossing, with previous equality allowed.

The bad-OPEN block persists for the session

Check every valid contained candle OPEN, not wick. Strictly outside these limits blocks the code until a new session: HA [L4,H2]; LA [L2,H4]; HB/HE [L2,H6]; LB/LE [L6,H2]; HC/LD/HF [H3,U]; LC/HD/LF [D,L3]; HG [D,PC]; LG [PC,U]. U = H6 + 0.5(H6−H4), D = L6 − 0.5(L4−L6). Equality does not block.

A blocked pending setup invalidates. ACTIVE retains its ending rules; recovery cannot clear the block.

Same-bar versus later confirmation

A/F/G can touch and recover on the setup candle. Wrong-side touches need a later recovery from the previous wrong-side close. C/D can arm and confirm on a containing approach candle. B/E need a later bar. Confirmation still needs approach region, optional SMA alignment and acceptable geometry.

Setup, cancellation and endings

A candidate need not become a play.

CANDIDATE
Context, width, opening and bad-OPEN checks qualify. This is not an entry.
APPROACHING
Candidate plus closed price in its strict region. The original setup is still required.
BLOCKED / DATA WAIT
A prerequisite failed, bad OPEN latched, or required data is unavailable.
ARMED
An original setup was observed; confirmation and geometry remain required.
ACTIVE
A confirming close accepted fixed reference geometry. No order or fill is implied.
REJECTED / INVALIDATED
Geometry failed / a pending setup reached cancellation or a bad-OPEN block.
TARGET / STOP / EXPIRED
A later reference observation or deadline ended this episode.
DISABLED
The family is switched off; G defaults off.

Flags describe prerequisites, not ranking. Multiple hypotheses, including opposite directions, may coexist.

Cancellation, deadlines and bounded rearming

Cancellation precedes confirmation. Pending A long cancels at close ≤ L4; short at ≥ H4. B/C/D long at ≤ H3; short at ≥ L3. E long at ≤ L6; short at ≥ H6. F/G have no additional pivot cancellation. A bad OPEN invalidates pending setups.

Setup confirmation is allowed through age twelve; age thirteen expires first. Price outcomes precede active expiry at age 120 and known session end. Final session close cannot start ACTIVE. Rollover expires an unfinished episode without inventing a fill.

Factory: one episode per code per session, consumed when armed, including failures. Optional rearming requires cooldown, remaining budget and valid unblocked prerequisites. Cooldown three permits reset at end-bar plus three, never on the ending bar. Rearming cannot clear a bad-OPEN latch.

Fixed references and their geometry

Activation is an observation. The plan is a reference.

ENTRY REF is the confirming close; direction, stop, target, time, source and settings freeze with it. R measures distances, not fills or returns.

Structural defaults and ATR alternatives

A stop is beyond the farther of fourth tier and armed extreme. B/C/D use H3 for longs or L3 for shorts. E extends beyond outer tier and armed extreme. F/G extend beyond both armed extreme and one-quarter of fourth-to-third spacing outside the sixth tier.

The outward buffer defaults to one tick. Long stops round down, short stops up; targets round toward the activation close. Entry retains sub-tick precision. Prices must be positive, direction correct, risk at least one tick and ratio at least 1R after rounding.

Stop and target can independently use configurable multiples of frozen ATR. Optional maximum target distance rejects geometry without moving its destination. The lesson uses structural defaults; SMA and ATR alternatives are not simulated.

Later observations and frozen endings

No activation-bar outcome. Later stop gaps use observed open; target gaps use fixed target. Otherwise stop touch precedes target touch. If both touch, ambiguity is marked instead of inferring an intrabar path.

Invalid or uncontained OHLC cannot settle price outcomes; clock expiry continues. Ended snapshots retain references and end time as LAST REFERENCE. Current distance uses last closed price; it does not move the plan.

Every setting and your first chart

Verify coverage before interpreting a row.

  1. Use standard time-based 1m–60m candles with enough source history.
  2. Read resolved Market default source and Auto clock. Configure RTH/ETH for your exchange; non-crypto does not mean every exchange uses US cash.
  3. Check source, close, ATR and opening provenance. Resolve DATA WAIT or OPEN UNKNOWN first.
  4. Read the seven-level map and Top Left Ribbon, then follow the tracked episode. Open Inspector for its prerequisite, setup and NEXT.
  5. Save a named template; recreate alerts after script or causal setting changes.
Defaults are a baseline, not a selected market configuration

Market default source and ATR basis; Auto clock; matching close. Display: Ribbon, Top Left, Trading Dark, seven levels with right tags; 12% header clearance. Range threshold and Similar tolerance both two percent. A–F on, G off, Neutral off. Structural stop and target, one-tick buffer, minimum 1R, setup twelve, active 120, SMA off, rearming off, one episode.

Exact input names and factory defaults from the current source. The explanations above show how they fit together. A disabled option may require its parent switch.

Source and decision clock
Pivot sourcesourceModeDefault Market default
Decision windowdecisionModeDefault Auto
Custom decision intervalcustomSessionDefault 0930-1600
Custom IANA time zonecustomTimezoneDefault America/New_York
Custom weekdays onlycustomWeekdaysDefault true
RTH source intervalregularSessionDefault 0930-1600
RTH source IANA zoneregularTimezoneDefault America/New_York
ETH source clockextendedClockDefault Auto
Custom ETH intervalextendedSessionDefault 1800-1700
Custom ETH IANA zoneextendedTimezoneDefault America/New_York
Pivot close selectioncloseModeDefault Match source
Auto excursion · % selected ATRswitchingToleranceDefault 2
ATR calculation basisatrBasisModeDefault Market default
Public Lite baseline · confirmed prerequisites
Neutral close change · % selected ATRrangeThresholdPctDefault 2
Similar width tolerance · %widthThresholdPctDefault 2
Allow both directions in NeutralallowNeutralDefault false
Original SMA close confirmationsmaGateDefault false
Chart SMA lengthsmaLengthDefault 20
Original structural hypotheses
A · Third-band traverseenableADefault true
B · Interior breakout and retestenableBDefault true
C · Opening continuationenableCDefault true
D · Context-opposed continuationenableDDefault true
E · Fourth-tier failureenableEDefault true
F · Outer-tier rejectionenableFDefault true
G · Opposite-side outer rejectionenableGDefault false
Setup deadline · completed barssetupDeadlineDefault 12
Active deadline · completed barsactiveDeadlineDefault 120
Minimum structural reward / riskminRewardRDefault 1.0
Stop buffer · minimum ticksstopBufferTicksDefault 1
Reference stop modelstopModelDefault Structural
ATR stop multiplestopAtrMultipleDefault 0.25
Reference target modeltargetModelDefault Structural
ATR target multipletargetAtrMultipleDefault 0.5
Maximum target distance · selected ATR (0 off)maxTargetAtrDefault 0
Allow another episode after endingallowRearmDefault false
Rearm cooldown · completed barscooldownBarsDefault 3
Maximum episodes per code / sessionmaxEpisodesDefault 1
Aggregate JSON alerts
Include activation eventsalertActivationDefault true
Include ending eventsalertEndingDefault true
Include armed eventsalertArmedDefault false
Display
Trade HUDvBoardModeDefault Ribbon
InspectorvDetailDefault Off
ThemevThemeDefault Trading Dark
Chart densityvChartModeDefault Map
Panel & chart tag sizevScaleDefault Medium
Inspect playvFocusCodeDefault Auto
Show play codesvCodesDefault false
Display · placement
Trade HUD positionvBoardCornerDefault Top Left
Inspector positionvFocusCornerDefault Bottom Left
Top Left header clearance · %vHeaderClearanceDefault 12
Display · chart
Price tagsvPriceTagsDefault true
Camarilla middle bandvMiddleBandDefault false
Reference risk / reward zonesvPlanZonesDefault true
Ended plans shownvHistoryDefault 2
Chart tag budgetvTagCapDefault 12
Price tag sidevTagSideDefault Right
Entry / ending markersvEpisodeMarksDefault true
Plan zone opacity · %vZoneOpacityDefault 14
Strategy Lab · one position · next available open
Eligible signal selectionlabCode · companion onlyDefault All · fixed code order
DirectionlabSide · companion onlyDefault Both
Risk budget · % equity at signallabRiskPct · companion onlyDefault 0.5
Maximum notional · % equitylabExposurePct · companion onlyDefault 90
Quantity increment · 0 uses symbol minimumlabQtyStep · companion onlyDefault 0
First signal timelabFrom · companion onlyDefault 01 Jan 2020 00:00 +0000
Last signal timelabTo · companion onlyDefault 01 Jan 2099 00:00 +0000
Show small Lab readoutlabShow · companion onlyDefault true
Alerts and event payloads

One envelope for the closed bar.

Two alert conditions cover activation and episode ending. One “Any alert() function call” alert aggregates selected same-bar events into JSON. Armed events default off.

In TradingView’s alert dialog the two conditions are named “Camarilla play activated” and “Camarilla episode ended”. The envelope from “Any alert() function call” opens with {"schema":"camarilla-desk.v2","product_version":"2.1.0","rule_version":"lite2-prerequisites.original2.1-execution", …} and lists each event’s code, direction, time and fixed references.

The envelope includes settings, symbol, timeframe, source/session and frozen ATR provenance, with no confirmed fill. Recreate alerts after code, input, symbol or timeframe changes. Indicator: named condition or “Any alert() function call”. Strategy Lab: alert() calls for structural JSON; order fills are a separate broker event stream. No alerts are created here.

What the tool can and cannot tell you
READ THE BOUNDARIES

A declared hypothesis is not an order.

  • ACTIVE is a structural episode. STOP/TARGET are observed reference events, and R is activation geometry.
  • Prerequisites follow the author’s public Lite publication. Private Premium triggers and presets remain unverified. Weekly/monthly context is a separate publication, not this daily tool.
  • V2.1 combines public-Lite prerequisite concepts with original execution, source-freezing and ATR conventions. Fixtures prove neither private parity nor a trading edge.
  • Missing data blocks entry. Closed-bar confirmation adds delay, not prediction. Trading decisions and risk remain yours.
Common questions

Before you read ACTIVE

Can the map or an active reference move?

Map and plan freeze at decision opening and activation respectively. Forming bars do not commit changes. Input/history changes recalculate; display changes only presentation.

Why can a Higher play point short?

H names Higher context; SIDE names direction. HE/HF are short hypotheses, while HD is opposed continuation.

Why does a good-looking close still get rejected?

Wrong-side destination, unusable risk or insufficient rounded ratio rejects confirmation and consumes the episode. It does not chase another close.

05 · THE LOG

Every change, dated

What shipped and what changed in Camarilla Desk, newest first. Ask for the next change below; what gets built lands here with a date, and on the lab queue on the front page.

  1. Seven levels, clearer prerequisites and ATR v2.1.0 Updated Camarilla Desk

    The map, ATR basis, fourteen play rules and separate Strategy Lab now match the current release.

    • Seven map levels, the default Top Left Ribbon and clearly marked historical episodes
    • Explicit completed ATR basis, availability checks and frozen reference provenance
    • Updated candle simulator, full rulebook and separate indicator and Strategy Lab downloads
  2. Camarilla Desk v2.1.0 Shipped

    Builds a session map, then checks a potential trade.

BUILT WITH TRADERS

Something to change in Camarilla Desk?

A small friction or a big idea. Tell us what would make this tool work better for you.

What would help?

Describe your rules and what you want the tool to help you see.

Add chart details Optional

For a question about your idea or an update if it ships.

Guides & new tools Optional

Add an email above to choose this.

Show us on your chart Optional

Crop out any account details you don't want to share.

No account needed. Sent privately to the lab.
  1. We read it
  2. We choose what to build
  3. Shipped changes get a date

Requests for a new tool go on the same queue: see what is asked for and what is being built.

FULL PINE V6 SOURCE · CLOSED-BAR RULES · REFERENCE LEVELS

  • ICT Levels Desk

    Compare calculated Camarilla tiers with previous-period highs, lows, session opens and other recorded-price references.

  • Opening Range Desk

    Study a session-opening range when the opening window matters more than prior-source pivot formulas.

Built by ProEA Lab. Compare every desk in Pine Pro Library.