Liquidity Architecture Scanner [JOAT]Liquidity Architecture Scanner
Introduction
Liquidity Architecture Scanner is an open-source overlay indicator that maps equal high and equal low liquidity pools — price levels where two consecutive highs or lows are within an adaptive tolerance of each other — into persistent box-based zones with session-colored borders, RSI-strength opacity, intrazone volume POC lines computed from lower-timeframe data, retest tracking with progressive border brightening, and volume-filtered sweep labels. The system continuously monitors active zones for retests and sweeps, maintains live sweep counts on the dashboard, and applies a gradient barcolor that deepens when price is inside or approaching a zone.
The core problem this indicator addresses is that equal highs and equal lows represent clusters of resting limit orders placed by traders defending the same price twice — the institutional order flow concept of liquidity pools. When price sweeps through these levels, it typically triggers those orders and may reverse sharply. Standard equal-level detection tools use a fixed pip tolerance, which breaks down across instruments and timeframes. The LAS uses an EMA-normalized adaptive tolerance derived from recent bar-to-bar variance, making the detection self-calibrating. Layering a RSI filter ensures the equal high is detected above a bull momentum threshold and the equal low is detected below a bear threshold — filtering out levels formed in the wrong momentum context.
Core Concepts
1. Adaptive Tolerance
The tolerance level that determines whether two consecutive highs (or lows) are "equal" is computed from the EMA of average bar-to-bar absolute variance: barVar = avg(|high - high |, |low - low |), smoothed over the configurable EMA length. This variance-normalized tolerance automatically tightens in low-volatility environments and widens in high-volatility ones, ensuring equal-level detection remains meaningful across instruments, timeframes, and market regimes without manual parameter adjustment.
2. RSI Momentum Filter
An equal high only registers if the RSI is above the bull threshold (default 55) at detection time. An equal low only registers if the RSI is below the bear threshold (default 45). This dual-gate ensures that EQH zones are detected during upside momentum — when resting sell orders above the market are the relevant liquidity pool — and EQL zones are detected during downside momentum. Equal highs formed with a weak RSI below 55 represent a different structural context and are excluded.
3. Lower-Timeframe Volume POC
The indicator requests intrabar close and volume data from a lower timeframe via request.security_lower_tf(). For each zone's price range, the algorithm distributes intrabar volume into bins across the zone's height and identifies the bin with the highest cumulative volume — the Point of Control (POC). A dotted line is drawn at the POC price inside each zone box. This provides a volume-based reference level within the zone: the price at which the most trading activity occurred inside the equal-level band. Traders can use the POC as a more precise entry or target reference than the zone midpoint.
4. Session-Colored Borders and RSI Opacity
Each zone's birth session is stored and used to color its border: London zones receive a blue border (#60a5fa), NY zones a pink border (#f472b6), Asia zones a green border (#34d399), and off-hours zones a lighter gray. The zone fill opacity is derived from the RSI distance from the relevant threshold at the time of detection: the farther RSI is from the threshold, the more opaque the fill, communicating higher-conviction detections with stronger visual presence.
5. Retest Tracking and Sweep Logic
Each bar, the indicator checks whether price has entered a zone it was previously outside of. On first retest entry, the border width and brightness increase. On subsequent retests, the border continues brightening and a "RETEST n" label fires at the zone edge. When price closes fully through a zone — above the top for EQH, below the bottom for EQL — the zone is marked as swept, the sweep counter increments, and optionally a "SWEPT" label appears (subject to a volume filter that requires volume > SMA(20) * 1.3 for label display).
Features
Adaptive EMA-Normalized Tolerance: Equal-level detection threshold adjusts automatically to recent bar-to-bar variance, remaining calibrated across all instruments and timeframes
RSI Momentum Gate: EQH only detected when RSI is above bull threshold; EQL only detected when RSI is below bear threshold — filters out levels formed in wrong momentum context
Lower-TF Volume POC: Intrabar volume profiling using request.security_lower_tf() identifies the highest-volume price bin inside each zone
Box-Based Zone Rendering: Solid box fills with configurable session-colored borders and RSI-strength opacity
Session-Colored Borders: London blue / NY pink / Asia green — session context encoded directly in the zone visual
RSI-Strength Opacity: Fill transparency inversely proportional to RSI distance from threshold — stronger momentum detections are more visually prominent
Zone Midpoint Reference Line: Dotted midpoint line inside each zone for quick visual reference of the level center
Retest Tracking: Progressive border brightening and border width increase with each confirmed retest entry; RETEST n label fires on each new entry
Volume-Filtered Sweep Labels: SWEPT labels appear when price closes through a zone, optionally filtered to only show when volume exceeds 1.3x the SMA(20)
Formation Signals: Small EQH/EQL labels fire at the bar of each confirmed zone detection
Proximity Approach Markers: Diamond markers when price first enters within ATR * proximity buffer of a zone edge
Gradient Bar Coloring: Bars deepen in zone color when inside a zone, lighter when approaching, trend-tinted otherwise
Zone Expiry: Zones older than the configurable max age are automatically removed
10-Row Dashboard: Liquidity trend direction, active EQH/EQL counts, sweep counts per side, in-zone state, session, RSI, adaptive tolerance level
6 Alertconditions: Zone formation, zone entry, and liquidity trend flip alerts for both EQH and EQL
Input Parameters
Equal Levels:
EQ Tolerance Multiplier: Scales the adaptive tolerance — higher values allow wider "equal" windows (default 0.05)
Tolerance EMA Length: Smoothing period for the variance normalization EMA (default 500)
RSI Length: RSI lookback for the momentum filter (default 14)
RSI Bull Threshold: Minimum RSI for EQH detection (default 55)
RSI Bear Threshold: Maximum RSI for EQL detection (default 45)
Zone Max Age (bars): Zones older than this are deleted (default 300)
Proximity Buffer (ATR): Approach detection buffer as ATR multiple (default 0.5)
Volume Profile:
Lower TF (Volume): Intrabar timeframe for volume profiling — must be below the chart timeframe (default 3)
POC Bin Count: Number of price bins in the volume profile (default 7)
Visuals:
Toggles for POC line, zone midline, labels, formation signals, sweep labels, sweep volume filter, and dashboard
EQH Color (default violet #a78bfa), EQL Color (default teal #34d399)
How to Use This Indicator
Primary Setup — Liquidity Sweep Entry:
When price sweeps through a zone and a SWEPT label fires, watch for a reversal candle on a lower timeframe. The sweep has collected the resting orders; the price may reverse sharply. Enter on the first opposing candle after the sweep close with a stop beyond the swept level.
Retest Entry:
When price returns to a zone from the opposite direction after having moved away, watch for the RETEST label. Zones that have survived multiple retests (bright borders, high retest count) with no sweep are demonstrating price respect. Enter at the zone edge on the retest candle, stop beyond the far edge.
POC as Precision Reference:
The POC line marks where the most intrabar volume concentrated inside the zone. If price is approaching from below an EQL zone, the POC is a more precise target than the zone top. If price is inside the zone and stalling at the POC, this may be the key inflection level.
Liquidity Trend:
The dashboard Liq Trend shows BULLISH after an EQH sweep (sell-side liquidity was taken, likely pushing price up) and BEARISH after an EQL sweep (buy-side liquidity taken). Using this as a directional bias filter on lower-timeframe setups adds context from the liquidity architecture.
Indicator Limitations
Equal level detection requires consecutive bars with nearly identical highs or lows. In fast, impulsive markets where equal highs/lows rarely form, zone detection frequency will be low regardless of tolerance setting
Lower-timeframe volume profiling adds security calls per bar. On very high-frequency timeframes or instruments with large lower-TF arrays, this may slow indicator rendering
The RSI filter will prevent zone detection in any momentum condition that does not meet the threshold, which means zones formed during neutral RSI readings (45-55) are not mapped — these may still represent meaningful liquidity
Sweep detection requires a confirmed close through the zone boundary. Intrabar wicks that sweep through a level but close back inside will not register as a sweep, despite triggering orders in live trading
Zone expiry by age removes all zones older than the max age parameter regardless of whether they remain structurally significant — very long-lived confluence levels may be deleted in trend-persistent market conditions
Originality Statement
This indicator is original in its adaptive EMA-normalized tolerance, RSI-gated liquidity detection, lower-timeframe volume POC integration, and progressive retest border feedback system. The publication is justified because:
EMA-normalized adaptive tolerance makes equal-level detection self-calibrating across instruments and timeframes without manual adjustment — a significant improvement over fixed-pip tolerance approaches
RSI-gated zone detection filters equal levels by momentum context, ensuring only liquidity pools formed in the correct directional bias are mapped — a filtering mechanism not present in standard equal-level tools
Lower-timeframe volume POC computation inside each zone adds a volume-based precision reference that identifies the intrazone price with the highest transaction concentration — combining liquidity structure with volume analysis in a single overlay
Progressive border brightening as a retest counter provides an ever-updating interaction history on the zone visual itself, eliminating the need for a separate touch-count display
The sweep counter and liquidity trend directional state provide a market microstructure bias indicator derived purely from liquidity pool dynamics, without using any traditional trend filter
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial advice or a recommendation to buy or sell any financial instrument. Past performance of any pattern or signal does not guarantee future results. All trading involves substantial risk. Always use proper risk management and conduct your own independent analysis.
— Made with passion by officialjackofalltrades
Penunjuk Pine Script®






















