Based on Inner Circle Trader (ICT) algorithmic price action theory, this indicator specifically targets the First Presented Fair Value Gap (F-FVG) that forms immediately after the start of a Time-Range or trading Session (such as the New York AM Open). This First Presented FVG represents a significant imbalance in price delivery. Identifying the initial displacement gap can play a crucial role in framing future price movements, acting as a primary draw on liquidity or a high-probability point of support/resistance for the session.
2. Logic
2.1. First Imbalance Detection The script automatically scans price action right after a chosen session or time-range begins. It independently detects and plots only the first confirmed gap—whether it is a Fair Value Gap (FVG), Volume Imbalance (VI), or Liquidity Void (LV). Each configured session independently tracks its first imbalance.
2.2. Intelligent Time & Price Multi-Engine
MTF (Multi Time Frames): Lock the Indicator on a different Time-Frame from the chart. Both LTF / HTF locks.
MTR / MSR (Multi Time Ranges / Multi Session Ranges) : Scan for F-FVGs in Multiple (non overlapping) Time Ranges or Time Sessions.
M-MRF and MRF (Multi Minimum Range Filtering): Skips / Filters out any imbalance/FVG smaller then a global MRF or a Multi Session Based MRF.
2.3. Advanced Range Filtering To filter out market noise and insignificant gaps, the Minimum-Range-Filter (MRF) ensures only gaps that meet a required size (in points) are processed. This can be run globally or customized per session.
2.4. Intelligent Replacement System Not all first gaps are equal. The script features an advanced "Prioritize Displacement" engine that allows stronger, more obvious FVGs to replace earlier, weaker ones within the same session.
Grace Period: Protects the first FVG for a configurable duration after the session starts to prevent immediate replacement.
Superiority Factor: Requires any new FVG candidate to exceed the existing plotted gap by a specified multiple to trigger a replacement.
Time Decay (λ): Penalizes older or smaller gaps over time, ensuring only truly dominant displacements take over.
ATR Normalization: Normalizes gaps across different volatility regimes to ensure fair comparison.
3. Settings & Options
3.1. Analysis Mode & Timeframe
Analysis Mode: Toggle between specific "Time Ranges" (45 predefined 30-min intervals + 8 pre-labeled ICT Open Ranges) or "Sessions" (6 predefined ICT sessions like Midnight, NY AM, L-SB, etc., plus 3 custom slots).
Timeframe (MTF): Option to lock the timeframe to visualize FPFVGs from a lower timeframe on a higher timeframe chart.
3.2. Imbalances Settings
Imbalance Types: Toggle visibility for FVGs, Volume Imbalances (VI), and Liquidity Voids (LV).
Include Open/Close: Allows candle bodies to define gap boundaries (useful for suspension blocks).
Imbalance Levels: Toggle Consequent Encroachment (CE), Quadrants (25%/75%), and Eighths (12.5%/87.5%). Includes minimum range filters so levels only plot on larger gaps.
3.3. Imbalances Replacement
Prioritize Displacement: Enables the intelligent FVG replacement system.
Keep Replaced FVGs: Retains replaced gaps on the chart using a distinct color for reference.
Styling: Render gaps as solid "Blocks" or outline "Lines". Fully customizable colors, borders, and dash styles for current, previous, and replaced gaps.
3.7. Alerts
New Imbalances: Alerts when a new F-FVG is created.
Replacements: Alerts when an imbalance is replaced by a stronger displacement.
Retracements: Alerts when price retraces back into a plotted imbalance for the first time. Supports filtering by current vs. all gaps.
Format: Outputs plain text or structured JSON for webhook automations.