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.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.