OPEN-SOURCE SCRIPT
Supply & Demand Zones + Liquidity Map

Overview
Supply & Demand Zones + Liquidity Map plots the two halves of the intraday order-flow map on one chart: where imbalance originated (supply/demand zones) and where resting stop liquidity sits now (equal highs/lows and prior-day extremes). Its signature signal fires when a liquidity run terminates inside a fresh opposing zone — the classic institutional entry footprint.
How It Works
Zones. A zone is born from base-and-departure structure: two to six consecutive tight-range candles (each under a configurable ATR fraction) followed by an impulse bar exceeding 1.5× ATR with a dominant body. The base range becomes the zone. Departure volume above the volume-SMA multiplier marks the zone strong (● tag, heavier border).
Lifecycle. Every zone is a state machine: FRESH (full color) → TESTED (faded on first touch) → BROKEN (removed, or greyed if "Keep Broken Zones" is enabled, when price closes through). Zones expire after a configurable age so the chart never accumulates stale levels.
Liquidity. Equal highs and equal lows — two pivots within an ATR-scaled tolerance — are drawn as dotted stop-pool lines with EQH/EQL tags. Prior-day high and low are plotted as session reference levels.
Confluence. A triangle prints only when sell-side liquidity (prior-day low or an equal-lows pool) is swept and reclaimed while price is inside a fresh demand zone — mirrored for buy-side liquidity into fresh supply.
Signals
Teal/red boxes — demand and supply zones with FRESH/tested/broken states
Dotted orange lines + EQH/EQL tags — resting stop pools
Red/teal horizontal lines — prior-day high and low
Green triangle up / red triangle down — liquidity run terminating inside a fresh zone
Alerts for zone tests, confluence events, and new equal-high/low formation
Recommended Use
Designed for 1-minute to 15-minute intraday trading. Treat fresh strong zones as locations, liquidity pools as targets and traps, and the confluence triangle as the highest-quality context the script can identify. On low-volatility sessions, raise Impulse Range toward 1.8× ATR to filter marginal zones. Pairs naturally with an exhaustion or order-flow confirmation tool for entries.
Limitations
Zone detection is a structural heuristic on OHLCV — it approximates institutional activity and cannot see actual resting orders. Volume profile nodes are intentionally excluded for performance. Signals mark context, not guaranteed reversals. Not financial advice.
Supply & Demand Zones + Liquidity Map plots the two halves of the intraday order-flow map on one chart: where imbalance originated (supply/demand zones) and where resting stop liquidity sits now (equal highs/lows and prior-day extremes). Its signature signal fires when a liquidity run terminates inside a fresh opposing zone — the classic institutional entry footprint.
How It Works
Zones. A zone is born from base-and-departure structure: two to six consecutive tight-range candles (each under a configurable ATR fraction) followed by an impulse bar exceeding 1.5× ATR with a dominant body. The base range becomes the zone. Departure volume above the volume-SMA multiplier marks the zone strong (● tag, heavier border).
Lifecycle. Every zone is a state machine: FRESH (full color) → TESTED (faded on first touch) → BROKEN (removed, or greyed if "Keep Broken Zones" is enabled, when price closes through). Zones expire after a configurable age so the chart never accumulates stale levels.
Liquidity. Equal highs and equal lows — two pivots within an ATR-scaled tolerance — are drawn as dotted stop-pool lines with EQH/EQL tags. Prior-day high and low are plotted as session reference levels.
Confluence. A triangle prints only when sell-side liquidity (prior-day low or an equal-lows pool) is swept and reclaimed while price is inside a fresh demand zone — mirrored for buy-side liquidity into fresh supply.
Signals
Teal/red boxes — demand and supply zones with FRESH/tested/broken states
Dotted orange lines + EQH/EQL tags — resting stop pools
Red/teal horizontal lines — prior-day high and low
Green triangle up / red triangle down — liquidity run terminating inside a fresh zone
Alerts for zone tests, confluence events, and new equal-high/low formation
Recommended Use
Designed for 1-minute to 15-minute intraday trading. Treat fresh strong zones as locations, liquidity pools as targets and traps, and the confluence triangle as the highest-quality context the script can identify. On low-volatility sessions, raise Impulse Range toward 1.8× ATR to filter marginal zones. Pairs naturally with an exhaustion or order-flow confirmation tool for entries.
Limitations
Zone detection is a structural heuristic on OHLCV — it approximates institutional activity and cannot see actual resting orders. Volume profile nodes are intentionally excluded for performance. Signals mark context, not guaranteed reversals. Not financial advice.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。