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
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.