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
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。