OPEN-SOURCE SCRIPT
Mis à jour Sphinx Key Levels DOL Graded Supply & Demand

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.
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.
Notes de version
Version 2.8OVERNIGHT 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.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.