OPEN-SOURCE SCRIPT

Inversion Fair Value Gaps (IFVG) [ChartPrime]

20 840
🔶 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

snapshot

🔶 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.
    snapshot
  • Bearish Inversion: A Bullish FVG that is broken to the downside becomes a Resistance zone.
    snapshot
  • 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.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.