Fair Value Gap Auto-Fill Tracker [DefinedEdge]This indicator detects Fair Value Gaps (3-candle imbalances) and automatically tracks whether they get filled — replacing guesswork with hard data. A built-in dashboard shows fill rate, average fill speed, and active gap count in real time.
Most FVG indicators just draw boxes. This one tells you how reliable those gaps actually are on your chart.
How It Works:
A bullish FVG forms when the current candle's low is above the candle-two-bars-ago's high, creating an upside imbalance. Bearish is the mirror. Each gap is sized as a percentage of price and filtered by min/max thresholds to remove noise and news spikes. Gaps that overlap older active gaps replace them to keep the chart clean.
Once detected, every gap is tracked bar-by-bar until one of three things happens: it gets filled, it expires, or it stays active.
Fill Modes:
Touch (Wick) — counts as filled when price touches the gap edge
CE / 50% — filled when price reaches the Consequent Encroachment (midpoint), the standard ICT target
Full (100%) — only counts when the entire gap is closed
Switch between modes to see how fill behavior changes on your chart.
Features
Fill Rate Dashboard — live bull/bear/total fill %, avg fill speed in bars, active count
CE Midline — dashed line at the gap midpoint
TP Projections — 1x and 2x gap-height targets from the gap edge
Gradient Intensity — larger gaps are more opaque for visual weight
Gap % Label — imbalance size printed inside each zone
Session Filter — only detect FVGs during a specific session window
State Lifecycle — Active (bright, solid border) → Filled (faded, dashed) → Expired (gray, dotted)
Overlap Dedup — newer gaps that overlap older ones clean up automatically
Recommended Settings
Swing (4H/Daily): Min 0.3%, Max 8%, Expire 200 bars, CE mode
Intraday (15m/1H): Min 0.1%, Max 5%, Expire 100 bars, CE mode
Scalping (1m/5m): Min 0.05%, Max 3%, Expire 50 bars, Touch mode
Works on any asset and any timeframe.
Indikator Pine Script®






















