Updated

Sphinx Key Levels DOL Graded Supply & Demand

1 308
A draw-on-liquidity (DOL) map that plots the reference levels price is drawn toward, then builds supply and demand zones ONLY at those levels using an ICT-style delivery sequence. The aim is confluence by construction: rather than printing supply/demand everywhere, a zone can only exist where a tracked liquidity level was actually raided.
What it plots
Liquidity levels (each toggleable): prior day, week and month highs/lows; prior Asia and London session highs/lows; and the overnight high/low. Nearby levels are merged into a single graded band so the chart stays readable, and untested ("naked") levels are weighted up, since unswept liquidity tends to act as a stronger magnet.
Equilibrium references, kept separate from liquidity: midnight, 08:30 and 09:30 opens, plus optional weekly and monthly opens. A compact table reads price as premium or discount against each open.
Opening gaps: NDOG (new day) and NWOG (new week), drawn at their true range with a consequent-encroachment midline.
How the zones are built
For each enabled level, the script runs a four-step sequence:

Sweep - price trades through the level, raiding the short-term liquidity resting beyond it.
Reclaim - price closes back on the origin side within a set window, rejecting the raid.
Order block - the last opposite-close candle into the swept extreme is marked as the zone, optionally extended to the swept wick so a protective stop can sit beyond the raided liquidity.
Displacement - a fair value gap must form in the move away from the level to validate the zone. No FVG within the window, no zone. This step can be turned off to draw on the order block alone.

A high-type level that is swept and reclaimed produces a supply zone; a low-type level produces a demand zone. Only enabled level types generate zones, so selecting, for example, only prior day high/low restricts zones to those two levels. Each level holds one live zone at a time. A zone is mitigated when price closes through its far side, and by default a zone expires when its underlying level rolls to a new session, so a zone only remains on the chart while a live level of that type stands behind it.
Alerts
Three conditions: a new zone forms, price enters an active zone, and a zone is mitigated.
Notes
Higher-timeframe values use confirmed prior-period data and do not repaint after a bar closes. Zone detection runs on the live bar by default, so a forming zone can update until that bar closes and is fixed on close; an option is included to confirm zones only on closed bars for users who prefer no intrabar movement. Session times are New York based. Built for intraday index futures on sub-hourly charts; other symbols and timeframes will need the sweep and displacement windows retuned.
This is an analysis and context tool. It does not place orders and makes no performance claims.
Release Notes
Version 2.8

OVERNIGHT SESSION INDEPENDENCE
The overnight window (18:00-09:30) fully contains both the Asia and
London sessions, so the overnight high or low was frequently the exact
same price as the Asia or London extreme. It was being counted twice:
once toward a cluster's strength grade, and again as a second supply/
demand slot hunting a price another slot already owned. Overnight levels
are now suppressed when they duplicate an enabled Asia or London extreme.
Switch Asia and London off and the overnight levels become independent
again and return.

Expect some clusters that previously graded Strong to now grade Major.
That is the correction, not a downgrade.

CLUSTERING FIX
Levels arranged in a chain could be dropped from the map entirely. With
a tolerance of 6 points and levels at 100, 105 and 110, the 110 was
suppressed by the 105 but never absorbed into the cluster seeded at 100,
so it simply never drew. Cluster membership is now tracked directly and
every level lands in exactly one cluster.

BROKEN LEVELS VS RAIDED LEVELS
A level that price closed through and left behind was still treated as
live liquidity, re-arming on every pullback and printing zones off a
level that had long since been consumed. If the sweep window elapses
with price still closing beyond the level, that level is now marked
broken and stops hunting until it rolls to a new session.

OPENING EQ LINES ON ALL TIMEFRAMES
The 08:30 and 09:30 lines only appeared if a bar opened exactly on the
mark, so they were silently absent on several intraday timeframes and on
everything above 30 minutes. They are now captured on session crossing
and appear correctly everywhere.

ZONE REMOVAL
"Hide mitigated zones" is replaced by "Remove zone on", with two
choices: Invalidation (close through), or First mitigation (touch).
Zones are now always deleted rather than greyed out. Greyed zones were
never removed, so on long history they accumulated until the drawing
limit began discarding older objects.

ALERTS - ACTION REQUIRED
Alert names have changed. Existing alerts on this script must be
deleted and recreated.
- "Price entered S/D zone" is now "S/D zone mitigated"
- "S/D zone mitigated" is now "S/D zone invalidated"
- "S/D zone formed" unchanged
- "DOL level broken" new

OTHER
Weekly and monthly opens now share existing data requests, cutting the
script from six requests to four. Sweep and displacement windows are
capped at 200 bars. Drawing limits reduced now that zones no longer
accumulate.
Release Notes
Sphinx Key Levels: update notes, v2.8 → v2.23

New features

Daily range budget. Shows how much of a typical session is already spent, with budget high/low projections, a Budget row and Room up/down in the table. Levels beyond 1.3× the budget fade, since they are out of reach for today.
Premium/discount tied to the budget. The “Range zone” row reads where price sits inside what the day can deliver, not against a single open.
Ghost candles. Prior day and today drawn as candles to the right of the labels, with today’s unspent budget as a ghost box and a point scale.
Stretch bands. A smooth envelope on the 1-hour: a 50-bar EMA with zones from 2.5 to 4.0 ATR each side. A “Band stretch” table row and an exhaustion flag fire when price is inside a zone, the budget is 100%+ spent, and price is in the outer quarter of the day’s range. Session VWAP bands and a standard-deviation envelope remain as options.
1-hour swings, rebuilt. One swing high and one swing low, the two ends of the current range. Swings use Arjo’s intermediate-term definition (a 3-candle swing with a lower swing high, or higher swing low, on each side). A wick through counts as taken. When one end is taken, the other end moves to the extreme of the leg that broke it. Swings inside the range are ignored.

Clearer chart

One colour per kind of level. 1H swings gold, all other DOL levels white, NDOG and NWOG in purple with dashed borders, S/D zones teal and red with “SUPPLY” or “DEMAND” printed inside.
Merged labels. Right-hand labels close together in price stack into one label, with an input for the merge distance.

Fixes

NDOG/NWOG measured correctly: from the 17:00 futures close to the 18:00 reopen (was captured at 09:30).
Session highs and lows now come from a 5-minute clock, so they are the same on every chart timeframe.
Sweep and displacement windows are in minutes (240 and 120), not bars, so a setup means the same thing on any chart.
S/D zones default to confirmed bars, clusters sort by price, and zones clear when the S/D switch is off.
Minimum band width scales to the instrument, so NQ gets an equivalent width to ES.
Drawings are pooled (created once, then updated), which is lighter and steadier in real time.

What the testing showed (73 MES sessions, Aug to Nov 2026)

S/D zones alone are a coin flip: 48% reached +1R first, against 50% for random boxes.
Budget spent, stretch from the average, and level stacking did not lift them in that test.
So zones and bands are location and context, not signals. The stretch bands and the swing logic are unmeasured.

Known limits

Session times assume New York and London clocks agree, which is off for a few weeks around the clock changes.
The budget here uses realised range only, with no VIX term.
The envelope approximates SMC V2.0’s bands by eye; it is not the same formula.
Release Notes
Leaner on load. A fresh add shows only PDH/PDL, PWH/PWL, PMH/PML, the 08:30 open and the 1H swings; everything else is off until you tick it. The stretch band zones now default to 3 and 6 ATR, and the envelope mean line has its own colour, width and opacity.
Levels start at their candle. Each line begins at the candle that made it (the swing pivot, the bar that printed the prior day high, the 08:30 bar) and no longer runs to the left edge. Levels older than 5,000 chart bars still extend left.
VWAP removed. The session VWAP bands and their seven inputs are gone; the stretch bands, table row and exhaustion alerts run on the envelope only.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.