OPEN-SOURCE SCRIPT

Agreed Upon DOL

445
AGREED UPON DOL

Marks the unmitigated fair value gap that price is most likely to reach regardless of
which way the market resolves.


THE IDEA

Most targets require you to be right about direction. An agreed-upon draw on liquidity
does not. It is a gap positioned so that both outcomes route through it:

- if price continues, it runs straight through the gap on its way to the liquidity
beyond
- if price reverses, it must first rebalance the gap before it can deliver the
other way

Either branch touches it. That is what "agreed" means - both directions have agreed on
it. You are not betting on direction, you are collecting the level that gets hit either
way.


THE FOUR CONDITIONS

A gap is marked AGREED only when all four hold on its own timeframe:

1. it is an unmitigated fair value gap
Nothing else qualifies. Not session highs, not previous day levels, not
intermediate highs or lows. Only an untouched three-candle imbalance.

2. unswept liquidity exists BEYOND it, on its own side
The continuation branch needs somewhere to run to.

3. unswept liquidity exists on the OPPOSITE side of price
The reversal branch needs somewhere to run to.

4. the path to it is clear
Nothing between price and the gap - no unswept swing, no other unmitigated gap,
no session or daily level. If something sits in between, that nearer level is
where the market decides, so the far gap is no longer inevitable.

Miss condition 2 or 3 and only one branch exists, so you are back to betting on
direction. Miss condition 4 and the level is simply further away, not inevitable.


ON THE CHART

- a box around the agreed gap, labelled with the timeframe it came from
- dotted lines showing the liquidity pools the test is using
- "swept" tags wherever a pool is taken out

By default only the nearest agreed gap on each side is drawn. Turn on non-agreed gaps
to see what was rejected - the rejections tell you more about whether the logic matches
your read than the acceptances do.


THE PANEL

TF gaps agreed
15m 3 1
30m 2 0
1H 4 1
REASSESS POOL SWEPT

Per timeframe: how many unmitigated gaps are tracked, and how many currently qualify.
A red "!" next to a timeframe means it sits below your chart timeframe and has been
switched off.

The bottom row lights up when the map changes, because it goes stale as the session
runs:

TARGET HIT price reached the level you were pointing at
POOL SWEPT a liquidity pool was taken, so the conditions have shifted
MAP CHANGED a new candle printed a gap, or one was mitigated

New candles manufacture new gaps all session. A read taken at the open is stale within
the hour. Alerts are available for all three.


TIMEFRAMES

Analysis timeframes must be at or above your chart timeframe. request.security cannot
read down - it returns junk instead of erroring, so anything below the chart is disabled
outright and flagged in the panel.

Defaults are 15m / 30m / 1H, which means a 15m chart or lower. Each timeframe is
analysed self-contained: a 15m gap is judged against 15m swings, a 1H gap against 1H
swings. Results are identical on any chart below them, so you can sit on the 1m all
session and still be reading hourly structure.


WHAT THIS IS NOT

Not a bias tool. An agreed DOL has no direction by design - that is the whole point. It
tells you WHERE, never WHICH WAY.

Not an entry signal. It is a target. Two agreed gaps on opposite sides is not a
conflict, it is a range - wait to see which side fires, then trade toward what is left.

Not a filter for reachability. A gap 600 points away can satisfy all four conditions and
still be out of reach in a session. Judge distance yourself.


SETTINGS WORTH TOUCHING

Swing Left / Right defines what counts as a liquidity pool, so it drives
conditions 2, 3 and 4. Counted in bars of the analysis
timeframe, not your chart. If everything shows as agreed,
raise these first.

Require Clear Path condition 4. Turning it off will produce many more signals
and most of them will not be inevitable.

Session / Daily as
Obstacles the strictest part. An unswept London high anywhere in the
path kills the signal. Turn off first if it is too tight.

Only Nearest Each Side off shows every qualifying gap rather than just the closest.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.