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.0.0

Sweep
Desk liquidity sweep indicator for TradingView

It marks prior highs and lows as pools, waits for a liquidity sweep and a gap that inverts, and draws a plan only if a 60-minute gap was just touched for the first time.

SWEEP DESK16:00
● SCANNING · 16:00 · NY PM
Pool
6 BSL · 6 SSL resting
Confirm
—
Stop
—
NOW
scanning — 6 buy-side and 6 sell-side pools are resting; nothing has been raided yet (decision support, not a trade instruction)
Closed bars · New York timeSweep Desk 2.0.0

Day 1 · the first after the warm-up to reach TP1

Simulated fifteen-minute gold candles from our seeded market model, not a real market, read by Sweep Desk 2.0.0's own rules, checked bar by bar against TradingView. The model plants stop runs at untouched swings; some reverse. R is as the script counts it: paper, before costs. Day 1 is the first simulated day after the warm-up whose plan reaches TP1; Another day plays the next simulated days with a plan, in order, whatever they did; each plays one New York day, then runs on until that day's plans have ended.

Read as text
Times are New York, at each candle's close, as the script's clock prints them. The script's labels are quoted as it prints them; the joining words are ours. R is paper, before costs.
TimeEventPrices
13:30✕ no shift in timeClose 4229.82
17:00The trading day opens17 BSL · 8 SSL resting
18:45BSL swept · SWGPool 4237.93 · high 4238.39 · close 4235.45
19:15iFVG inverted: a close through an opposing gapClose 4230.77
19:15SHORT armed · 4230.77, filled at the closeStop 4243.38 · TP1 4218.16 · TP2 4205.55 · TP3 4192.94
20:00TP1 reached: the stop moves to entryTP1 4218.16 · stop 4230.77
00:30XS · BE +0.0RExit 4230.77
07:15SSL swept · SESPool 4201.70 · low 4200.84 · close 4212.39
08:00iFVG inverted: a close through an opposing gapClose 4225.27
08:00✕ Plan rejected: no unused first-touch HTF FVG deliveryClose 4225.27
10:15BSL swept · SWGPool 4268.64 · high 4272.66 · close 4265.25
11:30iFVG inverted: a close through an opposing gapClose 4248.63
11:30✕ Plan rejected: no unused first-touch HTF FVG deliveryClose 4248.63

Full Pine v6 source in Pine Pro Library. Every step commits on the closed candle.

Confirmed, then refused.

By default a confirmed sweep becomes a plan only after a first touch of a completed 60-minute gap in the last 6 bars, a gate the chart never draws.

REJECTED

20:45: a close through the gap 3991.71–3993.39, 3.1 ATR from the extreme, confirms it. The script sets entry 3996.80 and stop 3978.04, then prints “Plan rejected: no unused first-touch HTF FVG delivery”: the first touch was 21 bars back.

  • A first touch of a completed 60-minute gap: true, 14:30 · first touch
  • Sweep: a raid that closes back inside: true, 19:45 · SSL swept · SWG
  • Confirm: a close through an opposing gap, a full ATR from the extreme: true, 20:45 · iFVG inverted · 3.1 ATR leg
  • The gate: a first touch in the last 6 bars: false, 20:45 · Plan rejected

The same simulated market and rules: the first simulated day after the warm-up where the 60-minute gate refused a confirmed sweep. Dashed grey is ours, not the script's: the 60-minute gaps, their first touch, the gate's 6 bars and the refused plan (TP2 4034.32, TP3 4053.08 above the chart). Let through, it would have ended XL · TP3 +3.0R at 02:00; the gate refuses such plans too; the day was picked by rule.

280

Raids

Wicks through a resting pool that closed back inside.

105

Confirmed

A close through an opposing gap, a full ATR away.

101

Refused by the gate

No first touch of a 60-minute gap in the last 6 bars.

4

Plans

The ones that passed the gate.

The script's own count at its defaults on a real chart: OANDA:XAUUSD 15m, the 6,101 candles from 30 June to 1 October 2026.

Every refusal has a name.

Shape a raid of a swing low and what follows; the script's own engine names the outcome.

LONG armed · 3403.00 The raid's wick was the 60-minute gap's first touch; the shift came 1.40 ATR from the extreme: stop 3398.23, TP1 3407.77, TP2 3412.54, TP3 3417.31.

The 09:30 candle at the low

What follows

A 60-minute gap under the low

Drawn candles, not the simulation: one drawn day, read by the desk's own engine at the script's defaults. Ours, not the script's: the dashed grey (an unarmed gap, the 60-minute gap, a refused plan's levels), the names, the LOW line and each “our label”.

0.05 ATR

To raid

A wick through a pool, then a close back inside.

1 ATR

To shift

A close through an opposing gap within 12 candles.

6 bars

The gate

A first touch of a 60-minute gap, or no plan.

1 ATR back

Not a raid

A close more than 1 ATR back through the pool cancels it.

The stop follows the ladder.

TP1 moves the stop to entry, TP2 to TP1; a plan ends at TP3, at its stop, or after 200 bars.

  1. 04:30 LONG armed · 4741.33Stop 4725.38 · 15.95 = 1R
  2. 06:30 TP1 reachedStop 4741.33 · 15.95 = 1R · BE
  3. 08:45 TP2 reached — stop to TP1Stop 4757.28 · 15.95 = 1R · TRAIL
  4. 09:00 XL · TP3 +3.0R

TP1 and TP2 moved the stop up; TP3 closed the plan.

Three plans from the simulated run: the first simulated plan after the warm-up to end TP3, the first to end BE, the first to end TRAIL. R is paper, before costs. A plan stopped before TP1 ends SL at −1.0R; the replay above plays those days too.

Stop

Past the sweep

The sweep's extreme plus 0.10 ATR.

TP1

Stop to entry

From the next bar; nothing is closed.

TP2

Stop to TP1

From the next bar; the dashboard writes TRAIL.

200 bars

Out of time

Still open, it closes at that candle's close.

Paste it. Run it.

Two files, the complete scripts, 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 chartIntraday candles under 60 minutes, at the defaults.
sweep-desk.pine · 1,607 linesDownload sweep-desk.pine
// ═══════════════════════════════════════════════════════════════════════════════//  SWEEP DESK — Liquidity · Shift · FVG  ·  Pine Script v6  ·  v2.0.0//  The liquidity-sweep model made mechanical and honest, with closed-bar structural references and explicit paper execution assumptions.////  THE SEQUENCE (every step commits on the CLOSED bar)://    1 · POOLS   resting liquidity = confirmed swing highs/lows, equal highs/lows, killzone-session//                highs/lows, previous day / week highs/lows. Each pool is resting until it is swept.//    2 · SWEEP   a bar wicks THROUGH a pool by ≥ X ATR and CLOSES back inside → the pool is raided.//    3 · CONFIRM within N bars, either (a) iFVG — a bar CLOSES THROUGH an opposing imbalance printed near the//                raid, so that gap INVERTS and becomes the entry zone (an original, explicitly defined inversion model), or (b) MSS — a//                close beyond the last opposing short-term swing with displacement (leg from the extreme ≥ k ATR).//    4 · ZONE    iFVG: the inverted gap · MSS: the 3-candle imbalance printed inside the shift leg.//    5 · ENTRY   confirmation close (v2 default); optional later close inside or resting edge / midpoint limit.//    6 · STOP    the sweep extreme ± a buffer — the structural invalidation, not a guess.//    7 · TARGET  frozen 1R / 2R / 3R milestones; optional nearest qualifying fresh opposing pool; explicit TP3 fallback.////  WHY IT EXISTS  "Finding the liquidity is easy; the entries and exits are where the gold is." This//                 build answers that with a state machine you can read on the dashboard, stop-first//                 accounting, and a track record that counts every setup it ever armed.//  STATUS         v2.0.0 · reliability revision · verification scope in docs/build-report.md · paper//                 ledger has NO costs · the Strategy Lab measures independent broker fills with costs · not a validated edge.//// …// ═══════════════════════════════════════════════════════════════════════════════//@version=6indicator("Sweep Desk — Liquidity · Shift · FVG", "SweepDesk", overlay = true, behind_chart = false, max_bars_back = 3000, max_lines_count = 250, max_labels_count = 200, max_boxes_count = 120) // ─────────────────────────────────────────────────────────────────── INPUTS · liquidity poolsgP = "Liquidity pools"inPivLen   = input.int(5, "Swing pivot length", minval = 2, maxval = 30, group = gP,     tooltip = "Bars on each side that confirm a swing high / low. A swing becomes a resting pool N bars after it forms — no repainting, some lag.", display = display.none)inEqTol    = input.float(0.15, "Equal highs / lows tolerance (× ATR)", minval = 0.0, maxval = 1.0, step = 0.05, group = gP,

No coding needed.

View the full code

Strategy Lab · optional

sweep-desk-strategy.pine

The same rules as orders for TradingView's Strategy Tester, with commission and slippage on from the first bar.

Download sweep-desk-strategy.pine

No coding needed.

View the full code

01 · Pine v6

Two files

The indicator plans; the Strategy Lab tests the same rules.

02 · Closed bars

On the close

Every step commits when its candle closes.

03 · Alerts

Every event

Armed to exit, in JSON or text; never an order.

04 · Library

Full source

Both files, in Pine Pro Library. The licence

Gold has its own desk.

If you trade gold, Pro is our sweep desk built for it alone: each side's trigger drawn before London and New York, and half off at 1R.

Gold Sweep Desk Pro A separate desk, for gold:

  • The game plan. Both sides drawn before each window.
  • Seven context checks. Each says what it sees; none is a forecast.
  • SMT with silver. Gold makes a new high or low; silver does not.
  • Half off at 1R. And a day guard for your limits.
  • The Radar. Eight markets in one table.
  • Full-plan alerts. On your phone, Discord or Telegram.
$49, one payment.
See Gold Sweep Desk Pro

No subscription Full source 7-day refund before download

Pro is a set of tools for reading and planning gold's day. It does not trade for you and it does not promise results.

What's inside

  • Gold Sweep Desk Pro
  • Gold Sweep Radar Pro
  • Pro Strategy Lab
  • Research Lab
  • Alert relay
  • AI Builder Kit

Straight answers.

How do I get the code?

The page, the films and the manual are open to everyone. Both scripts, the indicator and its Strategy Lab, are in Pine Pro Library: $49 once for every desk and every update, or included in the Complete Suite. Sign in to copy or download.

Is this a tested edge?

No. The parity test shows this page plays the script's own rules exactly, checked bar by bar against TradingView; it says nothing about results, and the script's header says so too: not a validated edge. What we measured is in the manual.

Why are so many sweeps refused?

By default a confirmed sweep becomes a plan only after a first touch of a completed 60-minute gap in the last 6 bars. The setting Require first-touch HTF FVG delivery turns that gate off; this page plays the defaults.

Is a plan a trade?

No. The indicator draws plans and says why; it places no orders, and its paper record has no costs. The optional Strategy Lab sends the same rules to TradingView's Strategy Tester, costs included.

Which charts does it read?

Any market on standard intraday candles shorter than 60 minutes, since the gate reads 60-minute gaps. The replay shows gold on 15 minutes, in New York time.

What is Gold Sweep Desk Pro?

A separate desk built for gold alone: both sides' triggers before London and New York, seven context checks, SMT with silver, half off at 1R, a day guard, the eight-market Radar and full-plan alerts. Sweep Desk stays complete on its own, in Pine Pro Library.

We, ProEA Lab, build Sweep Desk. The films run its rules on simulated candles, not market data. Not financial advice.

Full manual.

The earlier page, whole: read your chart, install it, and every rule one question at a time.

Open the full manualClose the full manual

Sweep Desk v2 · Pine Pro Library

Price breaks a level. What happens next?

Follow the sweep and qualifying inversion close. Read the accepted entry, structural stop and selected target.

Draws on your price chart. The indicator does not place orders.

Pastel clay illustration of a watched price level, a sweep and return, then confirmation and an entry zone with stop and target boundaries.
Workflow illustration
  1. Mark the pools

    Prior highs and lows worth watching.

  2. Confirm the sweep

    Price crosses, returns, then confirms a shift.

  3. Map entry and exits

    An entry zone, invalidation and target levels.

See the real chart

What is Sweep Desk?

Sweep Desk is a liquidity sweep indicator for TradingView in Pine Pro Library. It follows a price sweep through a reference level, then checks for a qualifying gap inversion or structure shift. Its dashboard explains the waiting state and accepted reference plan, including the structural stop and target. A separate Strategy Lab script tests execution assumptions.

Does every liquidity sweep create an entry?

No. A qualifying sweep starts a sequence; confirmation, context and entry checks must also pass. The default confirmation is a close through an opposing fair value gap. A reference level being crossed alone does not accept a plan. Read the sweep-to-entry sequence

Why does Sweep Desk wait for higher-timeframe data?

The default setup requires completed higher-timeframe gap context and an eligible first touch. Its sixty-minute source must exceed the chart timeframe. Check the New setups data row and Co-Pilot for the prerequisite that is still missing. Read the dashboard prerequisites

Must price return to the inverted gap before entry?

Not in the default Confirmation close mode, which accepts a qualifying confirmation close. Optional modes wait for a later close inside the zone or an edge or midpoint limit. Their arming candle cannot satisfy the later-entry requirement. Compare the entry modes

From a marked level to clear rules.

Built from a trader’s question: how do marked levels become entry and exit rules?

Inspired by iFVG Ultimate+ by TakingProphets / DodgysDD. These are original public-concept rules; private grades, LRL weights and discretionary refinements are not reproduced.

Illustrative price chart3 closed candles shown
Start with an earlier low.The tool marks 64 from earlier price history. It is a level to watch, not proof of orders waiting there. Green candles close above their open; red candles close below. Wicks show high and low. The earlier reference low is 64. The gap is not highlighted at this step. Watching the level.
Gold line = earlier low · White dot = latest close
Watching the level
1 / 5 · The level

Start with an earlier low.

The tool marks 64 from earlier price history. It is a level to watch, not proof of orders waiting there.

The entry rules are not complete yet.

Fictional prices and supplied history. Defaults also require a first touch of a fresh area from a higher timeframe. See the extra lesson below.

How could this help a trade?

Repeatable rules define qualification, entry and exit. Results depend on price, size and costs. A valid entry can lose.

Which close accepts the plan?

Compare the default confirmation-close entry with an optional return inside.

Illustrative price chart1 closed candles shown
An earlier low is already marked.The reference at 64 comes from earlier history. Only one new candle is shown so far. Green candles close above their open; red candles close below. Wicks show high and low. The earlier reference low is 64. The gap is not highlighted at this step. Watching the level.
Gold line = earlier low · White dot = latest close
Watching the level
Candle 1 / 6

An earlier low is already marked.

The reference at 64 comes from earlier history. Only one new candle is shown so far.

Entry methods only. The required higher-timeframe check is switched off here; explore it below.

What is supplied in this example?

Fictional prices; previously confirmed low 64 and high 160; ATR 10. Single-gap long-side inversion; Confirmation close or the labelled Close inside alternative. HTF delivery, SMT, momentum, vote minimum, volume and time gates are disabled to isolate entry timing. These six candles do not calculate earlier pools or ATR. The simulator below recalculates ATR from longer fictional history.

Why might it still wait? How do risk and exits work?
One-hour area → five-minute check0 later candles shown
Start with the larger chart.A completed bullish one-hour gap, 80–90, is supplied. Wait for the first later five-minute candle close. Supplied completed one-hour gap: 80 to 90. Green candles rise, red candles fall. This diagram checks context only, without an entry plan.
Completed bullish 1h gap: 80–90. The 5m candles start afterward. Gold ring = first touch.
First-touch age
—
Required check
Waiting
Entry signal
None here

Start with the larger chart.

A completed bullish one-hour gap, 80–90, is supplied. Wait for the first later five-minute candle close.

Supplied history, aligned time boundaries and any accepted-setup event. Only first-touch context is simulated; other entry checks remain separate.

Does a gap mean nobody traded there?

No. It compares the first and third wicks. The middle candle can trade through the strip. It does not record missing transactions.

Find the same steps on your chart.

Read state → zone → plan.

Actual Sweep Desk v2.0 on OANDA gold 5m, scanning with data prerequisites and the Co-Pilot visible; no active entry.
Gold 5m · Single mode · Clean view · scanning, with no active entryOpen full-size chart ↗
  1. 1 The state row

    SCANNING watches levels. SWEPT waits for confirmation. ARMED waits for entry. FILLED tracks the paper trade.

  2. 2 The entry zone

    Confirmation identifies this fixed area. Default entry uses that confirming close; return modes explicitly wait.

  3. 3 The plan

    Read entry, stop and selected final target together. The stop can move after milestones.

Explore the full price simulator

Edit the sweep, confirmation, later close and entry mode. This long-side example calculates ATR from fictional history, with supplied levels and context gates off.

CHANGE THE CANDLE. SEE WHY.

Which close begins the plan?

Compare the default confirmation-close entry with an optional return inside.

Earlier candles → test candleTest close 86
Resting low64Paper stop54145119.7594.569.2544
Inverted gapDrag the blue close ↕

Closed candles. The last is a later observation.

Watch the same candle change
86
94
How the calculation works & more controls
55
0

Raid: wick-through ≥ 0.05 ATR, close strictly above pool. Inversion: close strictly above gap, push ≥ one ATR. Later fills include both edges.

Confirmation: twelve bars allowed. Close-entry outcomes begin on later bars. Close inside is an alternative, with thirty armed bars and fill checked before expiry. Its entry recalculates risk from that acceptance close; accepted geometry stays fixed.

Open plan: entry 94.00, stop 54.00, targets 134.00 / 174.00 / 214.00. Opposing liquidity: none qualifies.

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

Paste it into TradingView.

Both complete Pine v6 scripts are in Pine Pro Library.

  1. 1

    Open Pine Editor

    Create a new indicator on your chart.

  2. 2

    Paste the code

    Copy below and replace the sample code.

  3. 3

    Add to chart

    Save it. Keep defaults and choose an HTF FVG source above your chart.

The indicator

Levels, entry plans, dashboard, Co-Pilot and alerts.

Indicator code

Copy the code as it is. No coding needed.

View the full code
Download the indicator .pine file

The strategy twin · optional

Measure the rules with costs on a second chart.

Strategy code

Copy the code as it is. No coding needed.

View the full code
Download the strategy .pine file

Release identity and file hashes · Licence

No setup yet?

Wait for completed history and unused first-touch context. The default 60-minute source must exceed your chart. Check New setups · data and Co-Pilot. A sweep alone cannot enter; data warnings do not replace an existing plan’s state.

Go deeper, one question at a time.

Full rules and settings, when you need them.

What happens between a sweep and an entry?
  1. WatchStart with a confirmed high or low.
  2. SweepPrice passes it, then closes back across.
  3. ConfirmA later qualifying close prepares a zone.
  4. AcceptDefault: enter at the qualifying confirmation close.

This long setup mirrors for shorts above a high. Defaults: Confirmation close and Single gaps. Close inside and limit entries are alternatives.

Where do the reference levels come from?

Swings: highs/lows confirmed five candles later by default. Equal levels: nearby highs/lows merged within an ATR tolerance. Sessions: extremes available after a session ends. Higher-timeframe swings and previous day/week levels add context.

“Liquidity pool” is the tool’s name for these price-derived references; it does not observe waiting orders. “Strong” means equal, session, higher-timeframe or day/week by type. It does not establish a better outcome.

Any wick strictly beyond a pool consumes it, even without enough depth or a close back inside. Touching exactly does not. Entry filters cannot make consumed liquidity fresh again. Age and budget prune swing-type pools; the drawing-distance setting only hides distant lines.

How do gap inversion and structure shift differ?

iFVG, the default: after a sweep, a new close through an opposing gap’s far edge can prepare that gap as the zone. In our long example, exactly 90 fails; above 90 can qualify. The gap must also meet age, location and movement checks.

Earlier candles → test candleTest close 96
Close must exceed94110101928374
Gap 1Gap 2Drag the blue close ↕
96

The gap condition confirms. At 96, the newest individual gap needs a strict close above 94. Equality does not confirm.

Original Series rule: same-direction gaps formed on consecutive chart bars, combined before inversion. This isolated illustration supplies valid gap sizes and shows only the inversion check; sweep, displacement, confluences and plan geometry remain separate requirements.

Default HTF prerequisite: a completed 60-minute FVG must receive its first valid touch. It grants six observed chart bars of directional context, ages zero through five, and cannot refresh on repeated touches. An accepted setup consumes it; a pending return retains its frozen context.

Optional SMT compares synchronized prior closed bars and needs a meaningful manually chosen pair. Momentum, a minimum observation count and confirmation-close macro windows are separate checks. Our definitions are explicit; more checks do not prove better results.

MSS, the alternative: price closes beyond the opposing short-term swing captured at the sweep, with enough movement. A qualifying gap in that shift leg becomes the zone. SHIFTED means it is still searching; ARMED means the zone is ready. Nearest picks its newest gap; Deepest picks its oldest.

Either accepts either route, with iFVG first if both qualify together. Confirmation allows twelve candles after the sweep; the next candle is too late. MSS allows eight extra candles after a shift to find the gap.

Default sweep distance is at least 0.05 ATR and the close must return strictly across the level. Confirmation needs at least 1 ATR of movement; gap width at least 0.1 ATR. ATR measures recent price movement including gaps; its length is fixed at fourteen.

Which entry mode starts the reference plan?

Confirmation close, the default: the qualifying inversion or MSS-zone acceptance close is the entry reference. Its earlier wick cannot also exit that plan.

Close inside, the alternative: a later candle closes within either edge, including exactly on an edge. Its actual close becomes entry. The confirmation candle cannot fill too.

FVG edge / CE midpoint: use a paper limit at the zone’s near edge or center. Contact can fill without a close inside. These are alternative entry rules.

The zone is fixed after arming. Close-inside entry recalculates stop and targets using the actual fill close and current ATR. The pending sweep extreme can extend before confirmation.

Why did the idea stop waiting?

Recorded reasons include no confirmation in time, no rejection, invalidation, a close through the wrong side of an inverted zone, price reaching the first target unfilled, or expiry.

A prepared setup has thirty candles to fill. Close inside first checks the frozen pending stop: a close beyond it cancels before entry and cannot move the stop to manufacture a fill. Otherwise, a qualifying fill wins over missed-target and expiry checks, including on the final allowed candle. Once expired, a later return cannot revive it.

Pro labels recorded cancellations. A fresh qualifying sweep can also replace an unarmed idea without a cancellation tag. Armed and filled setups are protected from replacement.

How do the stop and targets end the trade?

1R is initial entry-to-stop distance. Default stop: sweep extreme plus 0.1 ATR buffer. Zone far edge is an alternative. Auto can choose a nearer anchor when the sweep is too far; its 2.5 ATR cap does not constrain the default Sweep extreme setting.

Targets default to 1R, 2R and 3R. TP1 optionally moves stop to entry; TP2 always moves it to TP1. Neither takes partial profit. Protective stop changes apply from the next bar, after the current bar is checked against its existing stop. Breakeven names an entry-price reference; costs can still leave a loss. This tool has no continuous ATR trail.

Liquidity selects the nearest qualifying fresh opposing pool, skipping closer pools below the minimum distance: 2R by default, checked after rounding toward entry. Clustered quality requires at least two confirmed merged swing observations. Choose Liquidity or TP3 as final; Liquidity falls back to TP3 when none qualifies. The selected final target freezes at acceptance; later pool changes cannot move it.

Close entries have no entry-bar outcomes. On later bars, a stop-gap open is the exit reference; a favorable gap beyond the target uses the fixed target. Ordinary both-touch bars resolve stop-first and disclose ambiguity. Unknown intrabar limit fills never invent a same-bar target success. These paper assumptions are separate from broker fills. Default timeout is two hundred candles.

How do I read the dashboard and Co-Pilot?

State shows the stage and timers; Pool / Confirm / Zone identify the setup. Entry / Stop / R ladder / Liquidity describe its plan. Record / By pool / By model summarize closed paper outcomes without costs.

  1. SweptSelected qualifying sweep ideas.
  2. ConfirmedIdeas reaching confirmation.
  3. ArmedPrepared entry zones.
  4. FilledRecorded paper entries.

These counters exclude sweeps blocked by enabled filters and new sweeps while armed or filled. Sweep quality is descriptive; it gates nothing.

Co-Pilot explains NOW, WHY and PLAN from the same engine. Pro adds pool, sweep, structure, zone and cancellation labels; Full adds session shading. It does not draw every stored gap.

Actual Sweep Desk v2.0 on gold 5m in Series and Full view, with scanning status, marked reference pools and the Standard Co-Pilot.
Gold 5m · Series mode · Full view · four closed paper references, labeled too fewOpen full-size chart ↗
What does each setting change?

Four display defaults differ, labelled Indicator and Lab. The Lab has its own broker dashboard; other defaults are shared.

Reference levels

Confirmed highs/lows provide the references. Pool age and budget affect available levels; drawing distance only changes visibility.

Swing confirmation length
5 candles
Equal high/low merge distance
ATR × 0.15
Completed session highs/lows
On
Previous day’s high/low
On
Previous week’s high/low
On
Swing-type levels kept per side
10
Maximum swing-type level age
400 candles
Higher-timeframe swings
On
Higher timeframe
60 minutes
Higher-timeframe swing length
5
Draw levels within this distance
ATR × 8

Sweep checks

A wick must pass a level and close back across it. Optional checks select which sweeps can start an idea.

Minimum distance beyond level
ATR × 0.05
Require extra volume
Off
Minimum volume versus average
1.3 ×
Sweeps only in session windows
Off
Allowed level types
Any pool
Allowed direction
Both

Confirmation and zone

Choose gap inversion, structure shift or Either. Nearest/Deepest selects the newest/oldest qualifying MSS gap; it does not change iFVG selection.

Confirmation method
FVG inversion (iFVG)
Lookback before sweep for a gap
40 candles
Structure-confirmation swing length
3
Candles allowed for confirmation
12
Minimum push from sweep extreme
ATR × 1
Minimum gap size
ATR × 0.10
MSS gap choice
Nearest
MSS: extra candles to find gap
8

Entry, stop and targets

Choose the entry rule, stop anchor and final target. R means the initial entry-to-stop distance. Milestones move the stop without taking partial profits.

When an entry is accepted
Confirmation close
Initial stop anchor
Sweep extreme
Auto stop: maximum sweep distance
ATR × 2.5
Space beyond stop anchor
ATR × 0.10
First milestone
1R
Second milestone
2R
Final R target
3R
Minimum opposing-level distance
2R
Target that ends the trade
R ladder (TP3)
At TP1, move stop to entry
On
Candles allowed while unfilled
30
Maximum candles in an open trade
200

Session windows

These supply session highs/lows and the optional sweep-time check. They do not force trades to close.

Timezone
America/New_York
London window
02:00–05:00
New York morning
08:30–11:00
New York afternoon
13:30–16:00

Chart appearance

Choose Minimal, Clean, Pro or Full; Aurora Neon, Royal Gold or Colorblind-safe. Appearance does not change entry rules.

Amount of detail
Indicator: CleanLab: Minimal
Color theme
Aurora Neon
Shade risk and reward
On
Color candles during open trade
Indicator: OnLab: Off
Highlight stronger level types
On
Label distance to the right
20 candles

Dashboard

Show and arrange the current setup, counters and paper record.

Show dashboard
Indicator: OnLab: Off
Position
Top Right
Text size
Medium
Alternate row shading
On

Co-Pilot

Brief shows NOW; Standard adds WHY and PLAN; Detailed adds the record. Off hides the explanation.

Amount of explanation
Indicator: StandardLab: Off
Position
Bottom Left
Text size
Auto
Line width
64 characters

Alerts

Choose structured JSON or readable text for dynamic messages.

Send dynamic messages as JSON
On

Inversion grouping and context

Series combines adjacent gap births before inversion. Clustered target quality requires at least two confirmed merged swings; Any fresh pool also permits single observations. These are original definitions of public concepts.

iFVG mode
Single
Confirmation-close macro window
Off
Opposing target quality
Any fresh pool

Explicit confluences

The default requires one unused HTF first-touch context. Each other enabled gate must pass even when minimum votes is zero. Votes are observations, not a probability or private grade.

Require first-touch HTF FVG delivery
On
HTF FVG source
60 minutes · must exceed chart
First-touch context lifetime
6 observed chart bars
Untouched gap lifetime
50 HTF periods
Require paired-market SMT
Off
Comparison symbol
BINANCE:BTCUSDT · choose a meaningful pair
Inverse relationship
Off
Aligned-bar SMT window
10 bars
SMT context lifetime
6 chart bars
Require directional momentum
Off
Minimum body size
ATR × 0.5
Directional close location
0.7
Minimum observed confluences
0 of 4

Strategy Lab only

Lab sizing
Cash risk
Cash risk in account currency
100
Fixed units alternative
1
Maximum notional versus current equity
90 percent
Quantity increment
Symbol minimum
Manual quantity increment alternative
1

When required, volume must be positive with a positive twenty-bar mean. Zero or unavailable volume does not pass. The separate observation count is descriptive, not a private grade or probability.

Which events can send an alert?

The indicator has twelve named conditions: long/short armed, long/short filled, TP1, TP2, final target, stopped, cancelled, liquidity swept, FVG inverted and higher-timeframe pool swept. Final target covers TP3 or liquidity.

Any alert() function call sends only ARMED, FILLED, TP1, TP2, EXIT and CANCEL. It does not send separate sweep or inversion payloads. Use Once Per Bar Close.

Both scripts send JSON or readable text. The sweep-desk.v2 schema combines same-bar paper events with entry, initial/current stop, target, times and observed exit. These are not broker fills. The twin submits its bracket with entry and owns its position and deadline; a paper EXIT does not close it. Default Confirmation close uses on-close processing with declared slippage. Recreate alerts after source or setting changes.

How do I test the rules on my chart?
  1. Keep defaults and follow the state through a complete session.
  2. Include waiting, cancelled and losing examples.
  3. Load the twin on a second chart. Set realistic size, costs and slippage.
  4. Change one input at a time, then check a separate period.

Lab defaults: USD 100,000 capital, cash risk 100, maximum notional 90 percent of equity, commission 0.02 percent per order and five ticks of slippage. Fixed units is an alternative. The broker emulator can differ from the indicator’s cost-free reference ledger. Review Properties and quantity increment for the instrument.

Use the current Lab and its complete trade list. The older Strategy Tester picture belongs to the historical v1 article and is not a result for this release.

What did our measurements show?

The current v2 MNQ Strategy Lab sample lost money after costs. That small observation does not establish an edge.

The linked gold and bitcoin measurements belong to the historical v1 engine. Its close-inside baseline is not evidence for current defaults; v2 revises entry timing and broker ownership.

Keep historical findings and current validation separate. Software checks verify behavior, not economic edge.

Read the lab notes
What can change the reading?

Signals commit on closed candles. A live candle can change before its close. Different history, feeds, timeframes or inputs can recalculate results. Pivots appear after confirmation; session pools after their session ends. Higher-timeframe context uses its last closed candle.

The engine sees prices, not news, resting orders or execution. Its paper record excludes costs. It does not predict prices. Trading risk is yours; this is research tooling, not financial advice.

05 · THE LOG

Every change, dated

What shipped and what changed in Sweep 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. The confirming close starts the plan v2.0.0 Updated Sweep Desk

    Default inversion-close entries, explicit context checks and an independent broker lifecycle replace the earlier execution model.

    • Single and consecutive Series gaps, with optional return-entry modes retained
    • First-touch completed HTF context and separate setup-data readiness
    • No earlier entry-candle wick exits, plus explicit later gap and both-touch policies
    • Separate broker brackets, occupancy and exits; historical v1 measurements stay labeled
  2. Sweep Desk v1.1.0 Shipped

    Mapped a sweep, confirmation and return entry to stop and target references.

  3. Entries and exits around the sweep Request Sweep Desk

    The ask Sweep Desk was built from. Shipped as v1.1.0 with the inversion-gap confirmation, the stop at the sweep extreme and both targets drawn.

    1. Received
    2. Building
    3. Done

    “Finding the liquidity is easy. Getting the actual entries and exits right is where the gold is.”

    a liquidity trader, on the r/pinescript thread · Asked 3 Sep 2026 · Done 3 Sep 2026
  4. Measured on two markets before it shipped Lab note Sweep Desk

    Run with costs on across two markets. Only the inversion-gap confirmation held on both; the notes name where it barely paid.

BUILT WITH TRADERS

Something to change in Sweep 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.

  • Gold Sweep Desk

    Follow the same sweep and gap flip on gold's own session pools, on the New York clock.

  • Wyckoff Evidence Desk

    Compare a single sweep sequence with parallel range hypotheses and contested evidence.

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