SMC Liquidity & Dealing Range [Blk0ut]SMC Liquidity & Dealing Range
- Concept -
This is a professional-grade Smart Money Concepts (SMC) toolkit designed for precision intraday trading. Unlike standard indicators that rely on static "Previous Day" ranges or lagging pivot points, this script features a Dynamic Dealing Range that adapts in real-time to market structure.
It identifies the valid structural range (Premium vs. Discount), automatically expands that range if price breaks out in real-time, and overlays significant liquidity pools (Internal/External) to help you frame high-probability setups.
- Key Features -
1. Dynamic Dealing Range (Real-Time Expansion)
Most structure indicators lag—they wait for a pivot to "confirm" (which takes bars) before moving the range.
This script is distinct: It anchors the Dealing Range to the last confirmed structure, BUT it actively monitors live price action.
Smart Expansion : If price makes a new High or Low after the confirmed pivot, the Dealing Range (and the Premium/Discount zones) automatically expands in real-time. You never have to wait for a candle close to see the true range.
2. Directional OTE (Golden Zone)
The script detects the current structural bias based on the sequence of pivots.
Bullish Structure: If the range is anchored by a Low, the script projects the Long OTE (61.8% - 78.6% Discount).
Bearish Structure: If the range is anchored by a High, the script projects the Short OTE (61.8% - 78.6% Premium).
3. Automated Liquidity Classification
The script plots key historical levels and classifies them dynamically:
Internal Liquidity: Levels trapped inside the current Dealing Range. (Targets for "fuel").
External Liquidity: Levels outside the Dealing Range. (Targets for stop runs).
Monitored Levels: PDH/PDL (Daily), PWH/PWL (Weekly), PMH/PML (Monthly), and Session Highs/Lows.
4. Smart Line Merging (Clustering)
To prevent chart clutter, the script uses a clustering algorithm. If multiple liquidity levels (e.g., Swing High + Previous Day High) exist within a tight price zone (default 1.5% of range), the script merges them into a single line with a combined label (e.g. PDH + Swing High).
Configuration Guide
Dealing Range (Structure)
Structure Type:
External (Swing): Uses larger lookback periods (Default: 50). Best for finding the overall "playing field" on 15m/1H charts.
Internal (Structure): Uses shorter lookback periods (Default: 20). Best for scalping sub-structure on 1m/5m charts.
Lookback Lengths: Fully customizable to match your trading style.
Note: Depending on the timeframes you use and your trading style you WILL have to play with the Lookback Lengths, and the selection of Internal vs. External structures!
General Settings
Forward / Backward Extension: Controls how far lines stretch across the screen.
Merge Threshold: Controls how aggressively the script combines overlapping lines.
Session Times
Pre-Market / After-Hours: Essential for futures/stock traders. Ensure these match your exchange times (e.g., 0400-0930 for NY Pre-Market).
How to Use
Check the Phase: Are we in Premium (Red) or Discount (Green)?
Identify Targets: Look for Internal Liquidity near the Equilibrium or OTE zones.
The Setup: A common SMC play is to wait for price to sweep Internal Liquidity, tap into the OTE zone, and then target the opposing External Liquidity.
Happy Trading! Don't be exit liquidity
Pine Script® indicator






















