OPEN-SOURCE SCRIPT
Inversion Fair Value Gaps (IFVG) [ChartPrime]

🔶 OVERVIEW
Inversion Fair Value Gaps (IFVG) [ChartPrime] is a high-performance SMC (Smart Money Concepts) indicator that tracks the evolution of institutional liquidity gaps. This tool identifies Fair Value Gaps (FVG) created by institutional displacement and monitors their "Inversion"—a powerful structural shift where failed supply becomes demand (or vice versa).
Featuring a precision-focused invalidation engine, this indicator removes "Zombie Zones" by detecting re-breaches, ensuring your chart only displays the most relevant institutional levels.
• Advanced Inversion FVG (IFVG) Tracking
• Percentage-Based Displacement Filtering
• ICT-Style Structural Invalidation Logic
• Precision Retest Diamond Signals
• Historical Archive Longevity Markers

🔶 CORE CONCEPT — THE INVERSION (IFVG)
An Inversion Fair Value Gap occurs when price completely breaches an existing FVG. In institutional trading, these breached levels often flip their bias:
🔶 SMART INVALIDATION LOGIC
To provide the cleanest possible analysis, the indicator follows strict ICT re-breach rules:
🔶 HOW TO USE
🔶 CONCLUSION
Inversion Fair Value Gaps (IFVG) [ChartPrime] transforms raw liquidity data into an actionable structural map. By automating the lifecycle of FVGs—from creation to inversion and eventual invalidation—it provides traders with an institutional-grade roadmap of supply and demand.
Inversion Fair Value Gaps (IFVG) [ChartPrime] is a high-performance SMC (Smart Money Concepts) indicator that tracks the evolution of institutional liquidity gaps. This tool identifies Fair Value Gaps (FVG) created by institutional displacement and monitors their "Inversion"—a powerful structural shift where failed supply becomes demand (or vice versa).
Featuring a precision-focused invalidation engine, this indicator removes "Zombie Zones" by detecting re-breaches, ensuring your chart only displays the most relevant institutional levels.
• Advanced Inversion FVG (IFVG) Tracking
• Percentage-Based Displacement Filtering
• ICT-Style Structural Invalidation Logic
• Precision Retest Diamond Signals
• Historical Archive Longevity Markers
🔶 CORE CONCEPT — THE INVERSION (IFVG)
An Inversion Fair Value Gap occurs when price completely breaches an existing FVG. In institutional trading, these breached levels often flip their bias:
- Bullish Inversion: A Bearish FVG that is broken to the upside becomes a Support zone.
- Bearish Inversion: A Bullish FVG that is broken to the downside becomes a Resistance zone.
- These zones are marked with a Yellow Dotted Border to signal a potential structural flip.
🔶 SMART INVALIDATION LOGIC
To provide the cleanest possible analysis, the indicator follows strict ICT re-breach rules:
- Resistance IFVG Invalidation: If price closes back above the top of a bearish inversion zone, the level is considered failed and is removed.
- Support IFVG Invalidation: If price closes back below the bottom of a bullish inversion zone, the level is removed.
- Longevity Retirement: Active zones that reach the user-defined bar limit (default 200) shrink into 5-bar historical markers.
🔶 HOW TO USE
- High-Probability Retests: Monitor the Triangle Signals. These appear when price retests a confirmed inversion zone, identifying prime entry locations for SMC traders.
- Bias Confirmation: Use the Display Mode filter to focus only on Bullish or Bearish setups based on your higher-timeframe narrative.
- Displacement Validation: Gauge the strength of a gap using the Institutional Volume text displayed inside each box.
🔶 CONCLUSION
Inversion Fair Value Gaps (IFVG) [ChartPrime] transforms raw liquidity data into an actionable structural map. By automating the lifecycle of FVGs—from creation to inversion and eventual invalidation—it provides traders with an institutional-grade roadmap of supply and demand.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.