Time-Based Fair Value Gaps (FVG) with Inversions (iFVG)

Optimized for 10 minute charts or lower, this indicator identifies bullish and bearish FVGs, tracks their mitigation to form inverted FVGs (iFVGs) as key support/resistance zones, and generates retest signals with "Close" or "Wick" options.
With toggleable ATR filtering, optional FVG labels, mitigation removal, and alerts for new FVGs and signals, this indicator delivers precision for ICT strategies.
A timeframe warning ensures users stay on lower timeframes (<1 hour) for accurate filtering, making it ideal for targeting macro timeframes and hourly transitions.
Settings Description:
- Show Last (disp_num): Sets the number of recent inverted FVGs (iFVGs) to display (1–100, default: 5). Lower values reduce chart clutter, while higher values show more historical zones.
- Time Window Checkboxes (enable_00_10, enable_10_20, etc.): Six toggles to enable/disable FVG detection in each 10-minute window (:00–:10, :10–:20, :20–:30, :30–:40, :40–:50, :50–:60). All default to enabled, allowing FVGs across the hour. Disable specific windows to focus on key ICT periods (e.g., :00–:10 for hourly opens).
- Signal Preference (signal_pref): Choose "Close" (default) or "Wick" for iFVG retest signals. "Close" requires the candle body to confirm the retest, while "Wick" uses highs/lows, offering earlier but potentially noisier signals.
- Use ATR Filter (use_atr): Enables/disables ATR-based size filtering for FVGs (default: true). When enabled, only FVGs larger than ATR × Multiplier are shown, reducing noise.
- ATR Multiplier (atr_multi): Sets the ATR threshold for FVG size (0–∞, default: 0.25). Higher values filter for larger gaps; setting to 0 uses the average bar range, making the filter very permissive.
- Remove Mitigated FVGs (remove_mitigated): Removes FVGs and iFVGs when price fully closes through them (default: true), aligning with ICT’s principle that mitigated gaps lose relevance.
- Show FVG Labels (show_labels): Displays “Bull FVG” or “Bear FVG” labels above/below gaps (default: true). Disable to reduce chart clutter.
- Colors (bull_color, bear_color, midline_color): Customize colors for bullish FVGs (green), bearish FVGs (red), and midlines (gray). Adjust transparency for visibility.
Recommendations for ICT Traders
- To maximize the indicator’s effectiveness within ICT concepts, use it on 1–5 minute charts during macro timeframes like the New York Kill Zone (7:00–11:00 AM EST) or London Kill Zone (2:00–5:00 AM EST), where institutional order flow often creates significant FVGs. Focus on the :00–:10 and :50–:60 windows by enabling only these checkboxes, as they capture hourly opens and closes, key for ICT setups like Judas swings or liquidity grabs.
- Keep ATR filtering enabled with a multiplier of 0.25–0.5 to prioritize impactful gaps, but disable it on lower timeframes (e.g., 1-minute) for more FVGs during high-volatility periods.
- Enable mitigation removal to declutter the chart, reflecting ICT’s view that filled FVGs are less relevant unless inverted.
- Use "Close" signal preference for conservative retest confirmation, switching to "Wick" for faster entries in aggressive setups.
- Set alerts for “Bullish FVG Detected,” “Bearish FVG Detected,” “Bullish Signal,” and “Bearish Signal” to catch real-time opportunities.
- Avoid timeframes ≥1 hour, as the minute-based filter may be unreliable, and heed the warning label to stay on lower timeframes for precision.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.