OPEN-SOURCE SCRIPT

Supply & Demand Zones + Liquidity Map

552
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.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.