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 · v1.2.0

IFVG Desk IFVG indicator for TradingView

It marks each three-candle gap, flips it when a later close runs through it, and plans one trade inside 09:30–11:00 New York with a fixed stop and a 1R target.

Co-Pilot15:30
DESK
DAY DONE
NOW
Today's plan is used (last: 14:15 short · TARGET 1.0R).
WHY
Required: session ✗.
PLAN
No further entries today.
Closed bars onlyIFVG Desk 1.2.0

Trade 1 · each step shows

Simulated 15-minute gold bars, not a real market, run through IFVG Desk's default rules, simplified for the browser (the script suggests 1- to 5-minute charts and runs on these unchanged). The chart draws what the script draws at each close: its newest ten zones within 8 ATR, at most three of them ended. The higher-frame lanes, the optional checks (off by default), the 09:30 open and the previous day's high and low live in the script, not the film. Quiet bars run as a time-lapse; the trade slows down. Trade 1 is the first simulated trade whose gap forms after the film starts, so each step shows; Another trade plays the next simulated trades in order, whatever they do. R is before costs.

Read as text
Times are bar opens on the simulated New York clock (the card names a closed plan by its exit bar's close, as the script does). The words are the script's own event tape; R is before costs.
TimeEventPrices
02:30Window opensClose 4332.71
02:45⚡ Bullish IFVG confirmed · not entered: Outside NY entry sessionGap 4335.73–4336.07 · close 4336.87
03:15⚡ Bearish IFVG confirmed · not entered: Outside NY entry sessionGap 4325.49–4326.31 · close 4324.04
03:45⚡ Bullish IFVG confirmed · not entered: Outside NY entry sessionGap 4328.79–4331.20 · close 4331.96
04:30⚡ Bearish IFVG confirmed · not entered: Outside NY entry sessionGap 4332.05–4334.06 · close 4328.82
07:15⚡ Bearish IFVG confirmed · not entered: Outside NY entry sessionGap 4321.87–4322.83 · close 4319.60
07:15⚡ Bearish IFVG confirmed · not entered: Outside NY entry sessionGap 4328.79–4330.41 · close 4319.60
08:45⚡ Bullish IFVG confirmed · not entered: Outside NY entry sessionGap 4312.29–4315.99 · close 4328.76
08:45⚡ Bullish IFVG confirmed · not entered: Outside NY entry sessionGap 4310.58–4312.29 · close 4328.76
09:00⚡ Bullish IFVG confirmed · not entered: Outside NY entry sessionGap 4320.60–4330.48 · close 4331.80
09:00Bullish gap forms (the one this window trades)Gap 4310.58–4327.49
10:30⚡ Bearish IFVG confirmedGap 4310.58–4327.49 · close 4309.65
10:30▼ SHORT · 4309.65Stop 4336.39 · target 4282.91
14:00✓ TARGET · 1RExit 4282.91

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

A close flips the gap.

A later close through a gap's far edge flips it into an IFVG pointing the other way, and a close back through its other edge ends it.

INVALID

A close above 4330.41, its other edge: the bearish IFVG is invalid, and its life is over.

  • Fresh: a three-candle gap, not yet flipped: true, Bullish gap 4328.79–4330.41 · 04:00
  • Armed: a later close went through its far edge: true, 07:15 · a close below 4328.79
  • Invalid: a close went back through its other edge: true, 09:00 · a close above 4330.41

The same simulated 15-minute gold, simplified rules, one gap drawn alone. It is the first gap in the replay's windows, in order, that forms on screen, stays fresh 4 bars or more, flips, and is invalidated 4 bars or more after its flip, so each phase holds on screen. The phase words are the script's own.

Gap

Three candles

The third candle's low clears the first candle's high by at least 0.05 ATR; a bearish gap is the mirror.

Flip

A close through

A later close strictly beyond the far edge. A wick, or a close exactly on the edge, is not a flip.

Invalid

Closed back

An armed IFVG ends on a close strictly beyond its other edge; a close on it keeps it.

Expiry

180 bars

A zone still waiting after 180 bars expires; the chart keeps its newest 40.

A wick never flips.

Only a close through the far edge flips a gap, however far the wick goes.

Not a flip The wick went through 4300.00; the close stayed inside the gap.
4301.50

A drawn example, the same bars each time: only the last close moves. The verdict is the desk's own rule.

Rule

Strictly beyond

A close below a bullish gap's low flips it; one tick below is enough.

Edge

Not through

A close exactly on the low does not flip it.

Timing

At the close

The flip is recorded at the confirming close, never backdated.

Entry

The same close

Inside 09:30–11:00 New York, that close is the entry.

Five ways out.

The stop sits one tick past the prior ten bars' swing, the target 1R away, and five rules end the plan.

The bar reaches the target, and the plan closes there. TARGET 1.0R.

A drawn example, not the simulation: the film's run holds no gap stop and no ambiguous bar. R is before costs. One resolved plan per New York day; after it, the desk reads DAY DONE until the next day.

Stop

The swing

The lowest low of the prior ten bars minus one tick, for a long, rounded away from the entry.

Target

1R

One risk from the entry, rounded away from it.

Size

100 at risk

Whole units within 100 in the symbol's currency; no size, no plan.

Order

Stop first

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

Paste it. Run it.

Two files, the complete v1.2.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 an intraday chartStandard 1- to 5-minute candles; the context lanes pick their frames on Auto.
ifvg-desk.pine · 1,258 linesDownload ifvg-desk.pine
//@version=6// Web revision display-fix.1: restore precise inversion-close and positive-close wording; no engine changes.// …// Built from Pine Builder skeleton architecture. See docs/build-card.md.// Signals are close-confirmed. Paper R excludes costs; broker simulation differs.indicator("IFVG Desk · Open Source", "IFVG Desk", overlay = true, behind_chart = false, max_boxes_count = 160, max_lines_count = 350, max_labels_count = 200, max_bars_back = 3000)const bool IS_STRATEGY = false // Original, mechanical interpretation of publicly described IFVG concepts.// CLOSED-BAR SPINE: every lifecycle, signal, and paper mutation is confirmed-only.const string NY_TZ = "America/New_York"const string G_ENGINE = "01 · Gap engine"const string G_CONTEXT = "02 · Higher-timeframe context"const string G_CHECKS = "03 · Confluence gates"const string G_RISK = "04 · Risk & paper record"const string AUDIT_VERSION = "1.2.0"const string G_AUDIT = "06 · Setup audit trail" string entryMode = input.string("Inversion close", "Entry trigger", options = ["Inversion close", "Retest rejection"], group = G_ENGINE, tooltip = "Inversion: later close through opposite gap edge. Retest: a subsequent overlapping candle rejects beyond the IFVG edge in the trade direction. Failed gates do not create retroactive entries.", display = display.none)int atrLen = input.int(14, "ATR length", minval = 2, group = G_ENGINE, display = display.none)float minGapAtr = input.float(0.05, "Minimum gap / ATR", minval = 0, maxval = 3, step = 0.05, group = G_ENGINE, display = display.none)float birthBodyAtr = input.float(0, "Middle candle body / ATR", minval = 0, maxval = 5, step = 0.1, group = G_ENGINE, tooltip = "Zero disables the gap-birth displacement filter. Uses the middle candle's confirmed ATR.", display = display.none)int maxZoneAge = input.int(180, "Maximum zone age · chart bars", minval = 5, maxval = 2000, group = G_ENGINE, display = display.none)int zoneCap = input.int(40, "Retained chart zones", minval = 5, maxval = 80, group = G_ENGINE, display = display.none) string tfInputA = input.string("Auto", "Lane A timeframe", options = ["Auto", "1", "3", "5", "15", "30", "60", "120", "240", "D", "W"], group = G_CONTEXT, display = display.none)string tfInputB = input.string("Auto", "Lane B timeframe", options = ["Auto", "1", "3", "5", "15", "30", "60", "120", "240", "D", "W"], group = G_CONTEXT, display = display.none)string tfInputC = input.string("Auto", "Lane C timeframe", options = ["Auto", "1", "3", "5", "15", "30", "60", "120", "240", "D", "W"], group = G_CONTEXT, tooltip = "Auto resolves to 5/15/30 on 1m and 3m; 15/30/60 on 5m. All three lanes must be strictly increasing and higher than chart, including disabled lanes.", display = display.none)bool laneOnA = input.bool(true, "Enable lane A", group = G_CONTEXT, display = display.none)bool laneOnB = input.bool(true, "Enable lane B", group = G_CONTEXT, display = display.none)bool laneOnC = input.bool(true, "Enable lane C", group = G_CONTEXT, display = display.none)int htfMaxAge = input.int(80, "Context age · source bars", minval = 3, maxval = 500, group = G_CONTEXT, display = display.none)

No coding needed.

View the full code

Strategy twin · optional

ifvg-desk-strategy.pine

The same engine as broker orders for TradingView's Strategy Tester on a second chart, with commission and slippage set in the file.

Download ifvg-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 twin sends the same signals to the Strategy Tester.

03 · Your chart

Intraday

Standard time-based intraday candles; the films here use simulated 15-minute gold.

04 · Alerts

Seven named

Long, short, new gap, inversion, invalidation, expiry and paper resolution.

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 IFVG 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. The v1.2 checks cover how the program behaves, not trading results, and earlier tests on other charts disagreed. The v1.2 checks and limits say what was checked.

Why was an armed IFVG not entered?

With the default trigger, only the flip's own close can enter, inside 09:30–11:00 New York, one resolved plan a day. WHY names the check that failed.

What does the Suite add?

No IFVG 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 IFVG Desk. The films run its rules, simplified, on simulated candles, not market data; R is before costs. Not financial advice.

Full manual.

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

Open the full manualClose the full manual

IFVG Desk v1.2.0

Track the gap flip. Check the entry.

See each gap flip, entry check and trade plan.

TradingView indicator + test strategy · Pine Pro Library

ONE GAP, FOLLOWED THROUGHIllustrated example
Gap → close through → checksArmed. Entry still needs its rule.
  1. 01Find the gap
  2. 02See it flip
  3. 03Read the checks

What is IFVG Desk?

IFVG Desk v1.2 is a TradingView indicator for inversion fair value gaps, in Pine Pro Library. It checks an entry at a confirmed candle close, then keeps fixed paper-plan levels. A separate event history saves original decision reasons under each Setup ID. Recording starts on; the history panel starts hidden. Its bounded paper-engine journal is rebuilt on recalculation and is separate from broker fills.

Does an inverted fair value gap automatically create a trade?

No. An armed gap still needs the selected entry trigger, enabled context checks, usable data and valid risk geometry. The daily allowance also applies. In inversion-close mode, a failed flip-bar entry is not queued for a later candle. Read why an inversion may wait

Which filters can qualify an IFVG entry?

The six checks cover higher-timeframe gap overlap, a recent sweep, SMT comparison, previous-day direction, entry displacement and the New York session. Only the session gate is required by default; enabled checks need valid data before an entry qualifies. Explore the six context checks

How do I trace one setup’s original decisions?

Enable Show setup history and filter with the full Setup ID from a row tooltip. Eight events appear per page. Recording defaults to 300 events across all setups, up to 500; filtering does not reserve storage. Older decisions may be removed. Recalculation rebuilds the journal; Pine Logs export requires an editable personal copy. Read the history and export limits

First see the gap. Then see it fail.

Mark a three-candle gap, then watch for a closing break.

Watch the outer candlesClosed candle 1
Start with this candle’s lowest price.Its thin wick reaches 106. The thick body joins the open and close. We need two more candles before a gap can exist. Green candles close above their open; red candles close below. White dot: latest close. No gap has formed yet.
Thin wick: price extremes · White dot: latest close
Close
108
Original zone
not born
Paper plan
none
STEP 1 / 5

Start with this candle’s lowest price.

Its thin wick reaches 106. The thick body joins the open and close. We need two more candles before a gap can exist.

Fictional candles and supplied earlier history. Retest mode shows the flip separately from entry.

How could it help a trade?

It makes entry, blockers and exits testable. Clear rules alone do not establish an advantage after costs.

Same gap. Different next steps.

Reveal candle four, then compare the choices.

Watch the outer candlesClosed candle 1
The gap does not exist yet.Reveal candle three. The first and third candles must leave a strict space between their wicks; the middle candle may trade through it. Green candles close above their open; red candles close below. White dot: latest close. No gap has formed yet.
Thin wick: price extremes · White dot: latest close
Close
108
Original zone
not born
Paper plan
none
CANDLE 1 / 6

The gap does not exist yet.

Reveal candle three. The first and third candles must leave a strict space between their wicks; the middle candle may trade through it.

A flip, an accepted plan and a trade result are different events.

What is supplied in these examples?

Thirty earlier fictional candles warm up ATR 14 and the prior ten-bar stop. They recalculate with revealed prices. All shown bars are closed and inside one New York entry session; there is no earlier plan. The three supplied context gaps remain fixed: bearish 5m at 102–105, bullish 15m at 110–114 and bullish 30m at 118–122. Previous-day direction is bullish; synchronized SMT is unavailable.

Tick 0.25, cash risk 100 in symbol currency, point value 1, quantity step 1, one-tick stop buffer and 1R target are illustrative inputs. Only the session check is required, except the blocked case also requires higher-frame overlap. No future bars, account conversion, fees or broker fills are inferred.

Find the same story on your chart.

Read state → reason → plan. ARMED means an inverted gap; entry still needs its checks.

Follow each Setup ID to its entry or skip reason. History guide ↓

Earlier v1.1.1 capture · Gold · 5m · 15 / 30 / 60m lanes · Aurora · Compact dashboard

Original IFVG Desk v1.1.1 gold 5-minute chart: DAY DONE, required session check, higher-timeframe alignment rows, armed IFVG, session range and Co-Pilot.

Read DAY DONE and its reason first. The session check is required; the other checks are optional. An armed zone can remain on the chart after the daily plan allowance is used. The merged lane tag separates aligned bearish context from the opposing bullish lane.

Open the original capture ↗
Explore every control in the full simulator
CHANGE THE CANDLE. SEE WHY.

Can this close flip the gap?

Drag the last candle’s close across the blue edge. A wick is insufficient. The closed price decides whether the bearish gap becomes a bullish IFVG.

Earlier candles → test candleFlip-test close 108
Plan target121.25Original upper106Original bottom100Plan stop94.75142126.511195.580
Original gap · usedEntry at this close 108Drag the blue close ↕

Only the flip-test candle is edited. The later return is not shown yet.

Watch the same candle change
108
How the calculation works & more controls

The session check is required and met. Other untouched gates are off. Current context overlap is not met; entry displacement is met against 0.5 × ATR 6.69. Making an unmet check required blocks the trigger.

Supplied context: 5m bearish 102–105; 15m bullish 110–114; 30m bullish 118–122. The gate searches every aligned gap. It does not merely read the nearest displayed lane. These ranges are not recalculated from the small chart.

Retest requires a later overlapping bar and a strict close above both the upper edge and its own open. A failed retest may qualify on a later bar while still armed. Inversion-close mode cannot accept a previously blocked flip later. Invalid, used and expired zones never reopen.

Tick 0.25, prior ten-bar swing plus one tick, target 1R, cash risk 100, point value 1 and quantity step 1 are illustrative sizing inputs. Entry-bar extremes never resolve a new plan. No commissions, broker fills or future bars are simulated.

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

Paste it into TradingView.

Pine Pro Library owners: sign in to copy.

  1. 1

    Open Pine Editor

    Use standard intraday candles. Start with 1m and Auto context lanes.

  2. 2

    Paste the indicator

    Replace the sample code, save and add to chart.

  3. 3

    Check the clock

    The entry session defaults to 09:30–11:00 New York.

The indicator

Indicator code

Copy the code as it is. No coding needed.

View the full code
Download indicator .pine

The strategy companion

Use a separate chart, match engine settings and adapt costs to your instrument.

Companion code

Copy the code as it is. No coding needed.

View the full code
Download companion .pine

v1.2.0 source · display-fix.1 · Licence

Updating an earlier copy?

Replace the whole script, check saved inputs and recreate alerts. Recording starts on; Show setup history and Pine Logs export start off. The added setup_id connects accepted-entry alerts to history. Audit controls do not change entry selection or the paper rule. The web revision restores precise inversion-close wording and labels positive paper closes correctly. Its three display lines differ from the original v1.2.0 package; the rules remain unchanged. Original producer package.

See the Pine Editor walkthrough
What differs in the companion?

The signal engine is shared. Factory broker costs are 2.25 cash per contract/unit and one tick of slippage, with margin set to five percent. Adapt costs, margin, point value and quantity step to the instrument. Stop and target are submitted with entry; broker fills and the cost-free paper ledger can differ.

Go deeper, one question at a time.

Every rule and setting.

What happens from gap to finished plan?
01 · GAP

A space between candles.

The third candle closes with its low strictly above the high two bars earlier, or the bearish mirror. Minimum size and the optional middle-candle body filter decide whether the gap is retained.

02 · FLIP

A later close changes its role.

A strict close through the far edge inverts the gap: bearish becomes bullish, or bullish becomes bearish. A wick or equality does not flip it. CE is the midpoint, not a separate entry trigger.

03 · PLAN

The trigger must qualify.

Inversion-close mode evaluates that flip bar only. Retest mode waits for a later overlapping candle that closes beyond the trade-side edge with a directional body. Every required check and the risk plan must pass there.

What happens after a flip or entry?

An armed zone invalidates on a strict close through its opposite boundary. Equality survives. Fresh and armed zones expire when age exceeds the maximum; expiry is checked first. A zone flips once. Used, invalid and expired zones remain terminal.

Entry is the accepted close. The stop uses the prior rolling swing, excluding that entry bar, plus a tick buffer. Stop and target round outward to exchange ticks. Size rounds down from cash risk divided by stop distance and point value; missing history, wrong-side or sub-tick risk and zero size reject the plan.

Paper outcomes start on the next bar. Opening stop gaps exit at the open; favorable target gaps use the target. Otherwise a candle touching both levels resolves stop-first. Timeout and optional session exit follow price checks. One plan is active at a time; no new plan opens on its resolution bar. The daily cap counts resolved plans on their New York exit date.

When several zones qualify, the latest inversion wins; equal flip times choose the newest birth. The retention cap removes the oldest zone regardless of its state.

What do the six checks actually require?

Six factors stay visible. A required factor can block entry; an optional factor cannot. A count of matching checks is not a probability.

Higher-frame overlap
The entry candle overlaps any still-valid, same-direction gap in an enabled lane. Edge contact counts. The nearest displayed gap is only a summary.
Recent sweep
A wick strictly takes a prior rolling extreme, then closes strictly back inside. Default reference: twenty earlier bars; recent on the sweep bar and the ten bars after it.
SMT comparison
The previous chart bar makes a new rolling extreme; the synchronized comparator does not confirm it. Direct compares like extremes; Inverse swaps sides. Missing or stale data never passes.
Previous-day direction
The completed daily candle must point the same way. A doji is neutral. This is a separate factor, not the direction of the nearest gap.
Entry displacement
The entry body must point the trade’s way and reach at least 0.5 ATR by default. This differs from the optional middle-candle filter used when a gap is born.
New York session
Required by default: bar opens at or after 09:30 and before 11:00 New York. Changing the chart display timezone does not change this clock.
How the three higher-timeframe lanes work

On 1m or 3m charts, Auto uses 5 / 15 / 30m; on 5m, it uses 15 / 30 / 60m. All three must satisfy chart < A < B < C, even if a lane is disabled. A required context gate needs at least one enabled lane.

Each lane receives completed source candles, keeps valid gaps and shows the nearest one to the closed price. Equal-distance ties choose the latest gap. Its ALIGNED mark compares its direction with the analysed side; WHERE shows inside or distance in ATR. The entry check searches all aligned gaps, so another gap may qualify even when the nearest row is opposite.

Context gaps expire by source-bar age or a strict far-edge close. Their values arrive after confirmation, with deliberate delay. Current factor rows describe the latest closed candle, not a frozen explanation of an older entry.

How do I read every dashboard row?

WAIT has no armed zone. ARMED waits for a qualifying trigger. PLAN ACTIVE manages fixed levels. DAY DONE resumes entries on the next New York day.

STATE & RIBBON

What happens next?

The reason names the blocker or active levels. GAP → FLIP → CHECKS → PLAN lights the actual progress. Required checks appear first, with met, not met or no data.

PLAN & TODAY

Which levels are fixed?

Entry, stop, target, distances and size describe the accepted plan. When idle, the rows explain the rule. Today counts resolved plans; Full rows add the paper record and six-event tape.

CO-PILOT

The same read in words.

NOW gives the state and reason. WHY names required and optional checks. PLAN says if → then with levels. Detailed adds boundaries; Brief keeps the immediate read.

What does each setting change?
Inversion closeSession gate onlyPrior ten-bar stop + one tick1R targetOne resolved plan / NY day
Gap engine & context

ATR 14, minimum gap 0.05 ATR, middle-candle displacement off. Chart zones age out after 180 bars, with 40 retained. Context age is 80 source bars. Adjust lane timeframes and switches separately from the entry gates.

Checks & sizing

Optional gates are HTF overlap, sweep, SMT, day bias and entry displacement. SMT defaults to ES, Direct, with a ten-bar reference. Select a valid synchronized comparator. Cash risk defaults to 100 in symbol currency, quantity step 1, timeout 120 bars; session exit is off. Sizing does not convert account currency or enforce your broker’s restrictions.

Display & history

Full, Focus and Minimal change visibility, not retained-zone selection. Theme, dashboard, Co-Pilot and zone controls remain separate. The indicator starts Medium, Compact, Top Right, with Standard Co-Pilot Bottom Right; the companion starts Minimal with both panels off. Allow right margin for projected tags.

V1.1 display fixes retained the unchanged v1.0.1 engine. V1.2 adds frozen decision snapshots and optional history/export. Record setup history is on; Show setup history is off. Its panel displays eight events per page and starts Bottom Left, moving around occupied visible panels.

All sixty-three inputs appear below in source order. Defaults are for the indicator; companion differences are shown separately.

Gap engine

Birth uses the outer candles and optional size/body filters. Each zone flips once; the oldest retained zone is removed when capacity is exceeded.

Enter on the flip or a later retest
Inversion close
Candles used to measure movement
14
Smallest gap to keep
0.05 ATR
Minimum middle-candle body; zero disables
0 ATR
Expire fresh/armed zones after this age
180 chart bars
Maximum retained chart zones
40

Higher-timeframe context

Auto builds three increasing frames above your chart. Even disabled lanes must have valid frame ordering. Each lane keeps at most twelve gaps.

Lane A timeframe
Auto
Lane B timeframe
Auto
Lane C timeframe
Auto
Use lane A in the context check
On
Use lane B in the context check
On
Use lane C in the context check
On
Maximum context-gap age
80 source bars

Required entry checks

Every factor is observed. Only checks marked required can block entry. The session is the only required check by default.

Require same-direction context overlap
Off
Require a recent sweep
Off
Earlier candles defining a sweep extreme
20
Candles after a sweep that still count as recent
10
Require a strong directional entry body
Off
Minimum directional entry body
0.5 ATR
Require the previous daily candle to agree
Off
Require a synchronized market comparison
Off
Market used for the SMT comparison
CME_MINI:ES1!
Compare like or opposite extremes
Direct
Prior candles for the SMT extreme
10
Require the New York entry window
On
Entry window in America/New_York
09:30–11:00

Risk and paper record

Stops exclude the entry candle. Sizing uses symbol currency and point value, with no account-currency conversion. Broker restrictions may differ.

Cash budget for initial stop risk
100
Target distance relative to initial risk
1R
Earlier candles used to place the stop
10
Buffer beyond the prior swing
1 tick
Round size down to this increment
1
Resolved-plan allowance per New York exit day
1
Maximum candles held after entry
120
Exit on a bar outside the session
Off

Entry alerts

The dynamic message describes an accepted paper plan. It is separate from the indicator’s named lifecycle conditions.

Send structured accepted-entry messages
On

Record a setup’s original decisions

Confirmed events keep their reasons within a run; recalculation rebuilds them. Capacity is 50–500 events across all setups. Filtering neither reserves storage nor changes recording or entry selection. Use the full ID. Export needs recording On and an editable personal copy; it writes to Pine Logs only.

Record setup history
On
Retained audit events
300
Setup ID filter · blank = all
Blank · all setups
Write bug report to Pine Logs
Off

Chart and dashboard

Display controls do not change the entry rule. Visibility limits hide drawings while retained zones remain in the engine.

Choose Aurora, Royal Gold or Colorblind safe
Aurora
Choose Full, Focus or Minimal chart detail
FullCompanion: Minimal
Show the dashboard
OnCompanion: Off
Choose Compact or Full dashboard rows
Compact
Place the dashboard
Top Right
Size the dashboard text
Medium
Visible entry-chart zones
10
Visible retired zones
3
Maximum drawing distance from price
8 ATR
Completed plans shown besides the active plan
3
Project the three context gaps
On
Show 09:30 open and prior-day high/low
On
Draw the New York session range
On
Show inversion marks and entry tickets
On
Show the six-event tape in Full rows
On

Co-Pilot

Brief gives the immediate read; Standard explains checks and plan; Detailed adds limits. A shared dashboard corner moves this panel to the opposite lower corner.

Choose Off, Brief, Standard or Detailed
StandardCompanion: Off
Place the explanation
Bottom Right
Size the explanation text
Medium
Include WHY
On
Include PLAN
On
Include data limits
On

Browse the saved events

The panel starts hidden, independently of recording and the dashboard. Eight events per page, newest first; excessive page numbers clamp. Occupied panel positions move automatically. Rows use New York time; JSON timestamps are UTC.

Show setup history
Off
Setup history position
Bottom Left
Setup history page · newest first
1
Why did this setup enter or get skipped?

Each recorded gap gets one Setup ID. Its saved events explain what happened at the close when each event occurred. Later checklist changes do not rewrite those reasons within the same calculation.

ONE GAP · SAME SETUP ID

  1. 01

    Gap found

    Save its original edges and birth time.

  2. 02

    Gap flips

    Save the close that crossed its far edge.

  3. 03

    Decision saved

    Read why the trigger was accepted or skipped.

  4. 04

    Ending explained

    A zone can end, or an accepted paper plan can resolve.

Possible stages, not a promised path or four separate candles. A gap can expire before it flips. Retest mode also records an eligible overlap that fails its rejection close; ordinary waiting and non-overlap bars add no rows.

Open the history in TradingView

  1. Keep Record setup history on. Turn on Show setup history; the panel starts hidden.
  2. Read eight events per page, newest first. Row times use New York time. Hover for the full saved reason and Setup ID.
  3. Paste that full ID into Setup ID filter · blank = all. The shortened row ID will not match. The filter changes the panel and report, while recording and entry selection still cover every setup.

300 events across all setups are retained by default, adjustable from 50 to 500. This is separate from the zone limit. Check the removed-record count: an older birth or decision may be gone even when you filter its ID.

Actual IFVG Desk v1.2.0 on MNQ five-minute candles: the bottom-left setup history shows saved events and reasons, eight of 300 retained records, and a count of older records removed.
Actual v1.2.0 history panel · MNQ 5m · history and export enabled for this capture. Open full-size ↗

Copy the history and settings

  1. Use an editable personal copy in Pine Editor. Open Pine Logs from its More menu; published studies cannot produce these logs.
  2. With recording on, enable Write bug report to Pine Logs. Copy the report header/settings and matching event JSON lines. The export runs oldest first after historical calculation; later matching events append at their confirmed closes.
  3. Keep the JSON timestamps. A batch log prefix marks export time. Save the text before changing the chart or settings: recalculation rebuilds history from available bars. The switch does not create a permanent file or send a report.

These are paper events, with costs excluded. A resolution event’s detail retains the original accepted plan; candidate_plan is a fresh hypothetical plan for that event bar. Broker fills and Strategy Properties remain separate.

Which alert means an entry was accepted?

Seven named indicator conditions: long plan, short plan, new gap, inversion, invalidation, expiry and paper resolution. Only accepted-plan events mean the required checks and risk rules passed.

In TradingView’s alert dialog they are named IFVG Desk · Long, IFVG Desk · Short, IFVG Desk · Inversion, IFVG Desk · New gap, IFVG Desk · IFVG invalidated, IFVG Desk · Zone expired and IFVG Desk · Paper resolved.

“Any alert() function call” sends one structured accepted-entry event at the confirmed close. It includes setup_id for matching the audit, source zone, the existing entry-event id, direction, levels, size, factor states and enabled gates. The audit has a separate event_id. It describes a paper plan, not a broker connection. Strategy users can use alert() or broker order-fill alerts; indicator alertconditions are separate. Recreate alerts after changing inputs.

What was checked, and what was not?

The producer reports 88 local tests, nine native Pine probe checks and compilation of both scripts plus the probe without errors or warnings. These establish bounded program behavior; they do not establish a trading advantage.

Before/after observers matched on the same 5,888 historical bars in both entry modes. The real history panel and exported JSON were checked. This is a finite regression sample, not proof across every feed, input or recalculation. These are supplied evidence; the nine runtime checks were not rerun here. Both web files were freshly compiled after the display correction: zero errors or warnings.

The companion’s broker test was not repeated for v1.2. Earlier cross-chart findings remain historical; ETF charts disagreed and paper/broker records were not reconciled trade by trade. The paper ledger excludes costs and resolves unknown stop/target order stop-first.

What are the limits?
READ THE BOUNDARIES

A readable rule, with clear limits.

  • This is an original implementation of public IFVG concepts, not the private code behind a trade recap.
  • Confirmation adds delay. Loaded history, revised feed data and changed settings can alter the recalculated study.
  • An armed zone and an observed factor are context. Only a qualifying trigger creates a paper plan.
  • The paper model cannot know the order of touches inside a candle. A broker simulation does not establish an executable external fill.
  • Trading risk is entirely yours. This is context for your decisions, not financial advice.
What should I know before the first chart?
Does it use forming candles?

Gap birth, inversion, entry and lifecycle updates commit on closed candles. Higher-timeframe context uses completed source bars. The flip is recorded at its confirming close, never backdated.

Why is a bullish IFVG not a long entry?

ARMED is a zone state. The entry mode, enabled gates, available data, daily allowance and risk validity still decide. Inversion-close mode does not queue a failed flip for later.

Which charts are supported?

Standard time-based intraday candles, with all context frames strictly increasing above the chart. The tool refuses non-standard charts and invalid frame ordering with an explanatory error.

Why does SMT say no data?

The comparator must have matching timestamps and complete prior-bar references. A valid but unavailable feed is different from an invalid symbol. A required SMT check blocks while synchronized data is missing.

Can an invalid gap flip back again?

No. Each zone inverts once. Invalid, expired and used zones are terminal; a new gap must start a new lifecycle.

05 · THE LOG

Every change, dated

What shipped and what changed in IFVG 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. Trace a setup’s original decisions v1.2.0 Updated IFVG Desk

    Saved reasons by setup ID, with optional history and Pine Logs.

    • Recording on; panel/export off. Global rolling cap: 300 events (50–500). Full-ID filters change neither entries nor storage
    • Saved skipped decisions and paper outcomes; recalculation rebuilds history
    • Rules unchanged; prior display corrections retained
    • Producer reports 88 local tests and 9 native probe rows; companion broker simulation was not rerun
  2. Historical v1.1.2 armed-state and record wording Lab note IFVG Desk

    Earlier display corrections remain in v1.2.

    • Armed means waiting: only a new inversion close can enter
    • “Closed positive” includes positive-R timeouts/session closes, not only targets. Engine, signals and alerts unchanged
  3. IFVG Desk v1.1.1 Shipped

    Shows when a gap flips direction, which checks are required, and when a plan can start.

BUILT WITH TRADERS

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

  • SMC Basics

    Start with a basic fair value gap before studying what changes when its boundary fails.

  • Sweep Desk

    Compare IFVG checks with a broader sequence that starts from a liquidity sweep.

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