OPEN-SOURCE SCRIPT
ICT Dealing Range [EmpArchitect]

█ OVERVIEW
ICT Dealing Range auto-detects the active confirmed swing range and maps premium, discount, equilibrium, and directional OTE context directly on your chart.
No manual Fibonacci drawing.
No signals.
No entries.
No targets.
This is a clean dealing-range framework for ICT, SMC, and price-action workflows.
The tool answers one question:
Where is price trading within the active range?
█ WHAT IT SHOWS
The script draws:
• Active confirmed swing range
• Premium zone
• Discount zone
• 50% equilibrium
• Directional OTE zone
• Range high and range low
• Compact dashboard state
Premium and discount are always based on the active range:
• Premium = above equilibrium
• Discount = below equilibrium
• Equilibrium = 50% midpoint of the range
█ DIRECTIONAL OTE
OTE is directional.
In Bull Pullback mode, the range is measured Low → High and the OTE zone is drawn inside discount.
In Bear Rally mode, the range is measured High → Low and the OTE zone is drawn inside premium.
Default OTE levels:
• 62%
• 70.5%
• 79%
The 70.5% midpoint is shown inside the OTE zone.
█ RANGE DETECTION
The indicator uses confirmed pivot highs and lows to define the active dealing range.
Auto mode uses the most recent valid alternating pivot sequence:
• Low → High = Bull Pullback
• High → Low = Bear Rally
A minimum ATR range-size filter helps reject noisy micro-ranges on lower timeframes.
Auto-Update can be turned off to freeze the current range.
█ DASHBOARD
The top-right dashboard summarizes current range context:
• Mode: Bull Pullback / Bear Rally
• Zone: Premium / Discount / EQ / Above Range / Below Range
• Bull OTE / Bear OTE: Inside / Above / Below
• Range: size in ATR, or Broken Low / Broken High if price exits the range
• Age: bars since the range formed
If price breaks below a bullish range low or above a bearish range high, the dashboard marks the broken-range state clearly.
█ RANGE MODE
Available modes:
• Auto — uses the latest valid alternating pivot sequence
• Bull Pullback — forces Low → High range, OTE in discount
• Bear Rally — forces High → Low range, OTE in premium
█ VISUAL SYSTEM
The color system matches the EmpArchitect suite:
• Premium = amber
• Discount = teal
• OTE = subtle white / silver
• EQ = gray dashed line
Line hierarchy:
• EQ = dashed, width 2
• Range edges = solid, thin
• OTE levels = dotted, thin
Right-edge labels show:
• 100% High
• 50% EQ
• 0% Low
• Bull OTE / Bear OTE
█ ALERTS
Included factual alerts:
• Price entered premium
• Price entered discount
• Price crossed equilibrium
• Price entered directional OTE
• Price left directional OTE
Alerts are context alerts only. They are not trade signals.
█ NON-REPAINTING LOGIC
Ranges are based on confirmed pivots.
Pivot-based ranges confirm only after the required right-side bars have closed. This is structural confirmation by design.
Once a range is confirmed, it remains stable until a new valid confirmed range replaces it, or Auto-Update is disabled to freeze the current range.
█ PAIRS WITH
Smart Liquidity Map [EmpArchitect] — liquidity context
HTF Context Overlay [EmpArchitect] — higher-timeframe reference levels
Liquidity Trap Zones [EmpArchitect] — failed reversal / trap context
CISD tools [EmpArchitect] — displacement confirmation context
█ NOTES
• Works on all instruments and timeframes
• Best on 15M–4H charts
• Pine Script v6
• Open-source
• Built by EmpArchitect
Educational context tool only.
Not financial advice.
Not a signal service.
ICT Dealing Range auto-detects the active confirmed swing range and maps premium, discount, equilibrium, and directional OTE context directly on your chart.
No manual Fibonacci drawing.
No signals.
No entries.
No targets.
This is a clean dealing-range framework for ICT, SMC, and price-action workflows.
The tool answers one question:
Where is price trading within the active range?
█ WHAT IT SHOWS
The script draws:
• Active confirmed swing range
• Premium zone
• Discount zone
• 50% equilibrium
• Directional OTE zone
• Range high and range low
• Compact dashboard state
Premium and discount are always based on the active range:
• Premium = above equilibrium
• Discount = below equilibrium
• Equilibrium = 50% midpoint of the range
█ DIRECTIONAL OTE
OTE is directional.
In Bull Pullback mode, the range is measured Low → High and the OTE zone is drawn inside discount.
In Bear Rally mode, the range is measured High → Low and the OTE zone is drawn inside premium.
Default OTE levels:
• 62%
• 70.5%
• 79%
The 70.5% midpoint is shown inside the OTE zone.
█ RANGE DETECTION
The indicator uses confirmed pivot highs and lows to define the active dealing range.
Auto mode uses the most recent valid alternating pivot sequence:
• Low → High = Bull Pullback
• High → Low = Bear Rally
A minimum ATR range-size filter helps reject noisy micro-ranges on lower timeframes.
Auto-Update can be turned off to freeze the current range.
█ DASHBOARD
The top-right dashboard summarizes current range context:
• Mode: Bull Pullback / Bear Rally
• Zone: Premium / Discount / EQ / Above Range / Below Range
• Bull OTE / Bear OTE: Inside / Above / Below
• Range: size in ATR, or Broken Low / Broken High if price exits the range
• Age: bars since the range formed
If price breaks below a bullish range low or above a bearish range high, the dashboard marks the broken-range state clearly.
█ RANGE MODE
Available modes:
• Auto — uses the latest valid alternating pivot sequence
• Bull Pullback — forces Low → High range, OTE in discount
• Bear Rally — forces High → Low range, OTE in premium
█ VISUAL SYSTEM
The color system matches the EmpArchitect suite:
• Premium = amber
• Discount = teal
• OTE = subtle white / silver
• EQ = gray dashed line
Line hierarchy:
• EQ = dashed, width 2
• Range edges = solid, thin
• OTE levels = dotted, thin
Right-edge labels show:
• 100% High
• 50% EQ
• 0% Low
• Bull OTE / Bear OTE
█ ALERTS
Included factual alerts:
• Price entered premium
• Price entered discount
• Price crossed equilibrium
• Price entered directional OTE
• Price left directional OTE
Alerts are context alerts only. They are not trade signals.
█ NON-REPAINTING LOGIC
Ranges are based on confirmed pivots.
Pivot-based ranges confirm only after the required right-side bars have closed. This is structural confirmation by design.
Once a range is confirmed, it remains stable until a new valid confirmed range replaces it, or Auto-Update is disabled to freeze the current range.
█ PAIRS WITH
Smart Liquidity Map [EmpArchitect] — liquidity context
HTF Context Overlay [EmpArchitect] — higher-timeframe reference levels
Liquidity Trap Zones [EmpArchitect] — failed reversal / trap context
CISD tools [EmpArchitect] — displacement confirmation context
█ NOTES
• Works on all instruments and timeframes
• Best on 15M–4H charts
• Pine Script v6
• Open-source
• Built by EmpArchitect
Educational context tool only.
Not financial advice.
Not a signal service.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
SMC structure tools — no signals, just the map. Free alerts → t.me/smc_scanner_free | Scanner PRO → whop.com/smc-scanner | @EmpArchitect
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
SMC structure tools — no signals, just the map. Free alerts → t.me/smc_scanner_free | Scanner PRO → whop.com/smc-scanner | @EmpArchitect
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.