OPEN-SOURCE SCRIPT
Fair Value Gaps (SMC/ICT)

Fair Value Gaps (SMC/ICT) — TradingATH
Precision. Imbalance. Opportunity.
This advanced indicator automatically detects and visualizes Fair Value Gaps (FVGs) revealing the inefficiencies left in price delivery where institutional order flow has displaced liquidity. Each gap is cleanly mapped, color-coded, and dynamically managed, helping traders identify where price may seek to rebalance in the future.
Engineered for Smart Money Concepts (SMC/ICT) Traders, it delivers a disciplined, minimal, and highly responsive visualization of market inefficiencies — enabling precise alignment with institutional order flow and mitigation behavior.
What You’ll See
Features
Perfect For
Recommended Settings
In Short
Institutional logic. Visual clarity. Trading precision.
Fair Value Gaps (SMC/ICT) — TradingATH provides a clean, data-driven visualization of inefficiencies in price delivery, helping traders anticipate rebalancing and liquidity re-tests with exceptional clarity and professional design.
Created by: TradingATH
Precision. Imbalance. Opportunity.
This advanced indicator automatically detects and visualizes Fair Value Gaps (FVGs) revealing the inefficiencies left in price delivery where institutional order flow has displaced liquidity. Each gap is cleanly mapped, color-coded, and dynamically managed, helping traders identify where price may seek to rebalance in the future.
Engineered for Smart Money Concepts (SMC/ICT) Traders, it delivers a disciplined, minimal, and highly responsive visualization of market inefficiencies — enabling precise alignment with institutional order flow and mitigation behavior.
What You’ll See
- Bullish FVGs represented as soft green zones indicating bullish imbalances where price is likely to revisit for rebalancing.
- Bearish FVGs shown in refined red tones, marking bearish inefficiencies and potential short-term premium zones.
- Dynamic or Static Mode — choose between continuously updating live zones or static historical boxes extending for a controlled bar length.
- Smart Labels displayed within each zone identifying “Bullish FVG (Fair Value Gap)” or “Bearish FVG (Fair Value Gap)” with fully customizable text colors.
- Mitigation Lines optionally plotted once price closes through a gap, confirming rebalancing and structural cleanup.
- Optional Dashboard providing a clear count of active, mitigated, and total FVGs in both bullish and bearish contexts.
Features
- Auto Detection Logic: Precisely identifies FVGs using refined three-candle displacement logic with adjustable threshold sensitivity.
- Dynamic Zones: Live FVGs compress and evolve in real-time as price re-enters inefficiencies, maintaining structural accuracy.
- Smart Mitigation: Automatically removes or softens zones once filled or mitigated, keeping your chart focused and clean.
- Visual Precision: Professional color balance, typography, and spacing ensure a refined institutional-grade presentation.
- Alert System: Configurable alerts for new FVG formations and mitigation events to stay aligned with live liquidity flow.
- Performance Optimized: Built with efficient arrays and conditional logic for flawless responsiveness on all timeframes.
- ICT/SMC Integration: Fully compatible with complementary SMC tools like Order Blocks, Liquidity Sweeps, and Market Structure Shifts.
Perfect For
- SMC/ICT Traders analyzing price delivery imbalances and mitigation behavior.
- Intraday Traders tracking high-probability rebalancing setups within institutional killzones.
- Swing Traders identifying unmitigated imbalances as key areas of interest for future reversals.
- Analysts & Educators who demand clarity, precision, and reliability in their institutional models.
Recommended Settings
- Timeframe: 1H–4H (for structural precision).
- Mode: Dynamic = off for backtesting; on for live reactive monitoring.
- Extend: 20 bars for balanced visibility.
- Threshold %: 0.10–0.25% for adaptive sensitivity.
- Mitigation Lines: Enabled for visual confirmation of rebalancing.
In Short
Institutional logic. Visual clarity. Trading precision.
Fair Value Gaps (SMC/ICT) — TradingATH provides a clean, data-driven visualization of inefficiencies in price delivery, helping traders anticipate rebalancing and liquidity re-tests with exceptional clarity and professional design.
Created by: TradingATH
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.