OPEN-SOURCE SCRIPT

ICT Consequent Encroachment Map [EmpArchitect]

1 002
█ OVERVIEW

The ICT Consequent Encroachment Map automatically detects every qualifying Fair Value Gap and draws the exact 50% midpoint — the Consequent Encroachment level — where institutions statistically rebalance price. No manual measurement needed. The indicator tracks CE levels in real time, monitors for price reactions, and removes zones when fully mitigated.

Consequent Encroachment is one of ICT's most referenced concepts yet has zero standalone indicators on TradingView. Every other implementation buries CE as a sub-toggle inside bloated all-in-one tools. This indicator does one thing and does it properly.

This is a structure analysis tool. It does not suggest entries, stop losses, or take profits. It shows you where the 50% rebalance sits — you decide what to do with that information.

█ HOW IT WORKS

The indicator scans for Fair Value Gaps using the standard 3-candle pattern. A bullish FVG forms when the current candle's low is higher than the candle two bars ago's high — creating a gap. A bearish FVG forms in the opposite direction.

For each qualifying FVG (filtered by minimum ATR size), the indicator calculates the exact 50% midpoint and draws a CE line at that price. The FVG zone is drawn as a subtle box behind price. Both extend forward bar by bar until the zone is mitigated or expires.

Price reactions at CE levels are tracked automatically. When price touches the CE line and closes back on the correct side, a diamond marker appears and the CE line thickens — confirming institutional rebalancing activity.

Full mitigation occurs when price closes beyond the FVG boundary. The zone and CE line are deleted entirely — no ghost levels cluttering your chart.

█ FEATURES

— Automatic FVG detection with ATR-based minimum size filter
— CE line drawn at exact 50% of every qualifying FVG
— FVG zone boxes with subtle teal/amber fill
— Real-time reaction tracking (counted once per zone — no double counting)
— Full mitigation removes zone and line completely
— Age-based expiry for zones that are never tested
— Dashboard showing active bull/bear CE counts, reactions today, and historical reaction rate
— Configurable zone limits, age limits, and visual style
— Alert conditions for new FVGs and CE reactions

█ DASHBOARD

The top-right panel displays:
— Bull CE Active: number of unmitigated bullish CE levels
— Bear CE Active: number of unmitigated bearish CE levels
— Reactions Today: CE touches in current session
— React Rate: historical percentage of CE levels that produced a reaction before mitigation

█ SETTINGS

Detection: Min FVG Size (ATR multiplier, default 1.0), Max Active CE Levels (default 15), Max Zone Age in bars (default 150)
Visual: Bullish/bearish colors (amber/teal), CE line style (solid/dashed/dotted), FVG box toggle
Dashboard: Toggle on/off

█ HOW TO USE

CE levels are where institutions expect price to rebalance before continuing the move. A bullish FVG with a CE at 1.1520 means the 50% fill point is 1.1520 — if price pulls back to that level and reacts, institutions are defending the imbalance.

Watch for the diamond reaction markers — these confirm that price respected the CE level. A CE that reacts is stronger than one that has never been tested.

Combine with displacement analysis and structure (BOS/CHoCH) for higher-probability reads. A CE reaction inside a tested order block during a kill zone is a high-confluence scenario.

█ NOTES

— Works on all instruments and timeframes
— Best on 5M-1H for intraday CE reactions
— Adjust ATR filter: lower for forex (0.5-1.0), higher for crypto (1.0-2.0)
— Pine Script v6, open-source
— Built by 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.