ICT Fair Value Gap and Imbalance Engine
- Индикаторы
- Версия: 1.0
Automated ICT Fair Value Gap (FVG) and Imbalance detection engine with 50% Consequent Encroachment (CE) and dynamic mitigation tracking.
ICT Fair Value Gap and Imbalance Engine is a precision analytical tool designed for MetaTrader 5 traders practicing Smart Money Concepts (SMC) and ICT price action strategies.
The indicator automatically scans price history and detects 3-bar Fair Value Gaps (FVG) in real time. It highlights active imbalance areas, computes the crucial 50% Consequent Encroachment (CE) equilibrium level, and tracks when price mitigates and fills the imbalance.
Unlike conventional cluttered indicators, this engine features dynamic mitigation handling to ensure your charts stay clean, responsive, and readable.
Key Features:
- Real-Time Imbalance Detection: Instantly marks Bullish and Bearish Fair Value Gaps across any timeframe.
- 50% Consequent Encroachment (CE): Automatically plots the 50% equilibrium level within each gap, a critical institutional reaction point.
- Dynamic Mitigation Management: Choose between trimming the box to the exact fill candle, auto-deleting filled gaps, or dimming their color.
- Non-Repainting Logic: Gaps are locked once the third candle closes, ensuring strict historical integrity.
- Multi-Alert System: Optional popup, push notification, and sound alerts when price enters an active, unmitigated gap.
- Optimized Performance: Lightweight native MQL5 calculation with zero lag on multi-chart setups.
Indicator Parameters:
General Settings:
- Lookback Bars to Scan: Number of historical candles to analyze (Default: 300).
- Minimum Gap Size: Minimum gap distance in points (0 = Auto detect).
- Mitigation Handling: Trim to Fill Bar, Auto Delete, Dim Color, or Keep Full.
- Show 50% CE: Display the Consequent Encroachment midline (True/False).
- Unmitigated Gap Extension: Number of bars to extend active gaps forward.
Styling Settings:
- Bullish FVG Colors: Customizable border, background fill, and CE midline colors.
- Bearish FVG Colors: Customizable border, background fill, and CE midline colors.
- Mitigated Colors: Subtle dimmed colors for filled gaps.
Alert Settings:
- Alert on Price Touch: Alert when live price touches an active FVG.
- Terminal Popup, Mobile Push, Sound Alert toggles.
Best Practice Recommendations:
1. Ideal Timeframes: M5, M15, H1, and H4.
2. Combine with ICT Sessions: Use in confluence with our free ICT Asian London NY Sessions indicator for high-probability killzone setups.
3. No DLLs or external dependencies required. 100% pure MQL5 code.
