PROTECTED SOURCE SCRIPT

FVG IFVG Detector

58
The FVG IFVG Detector is a market–structure-based indicator designed to automatically detect Fair Value Gaps (FVGs) and Inversion Fair Value Gaps (IFVGs) on any timeframe. It highlights these imbalances as extended zones on the chart, helping traders identify areas where price has moved inefficiently and is likely to revisit.

Below is the detailed breakdown of what the indicator does:

1. Detects Bullish and Bearish Fair Value Gaps (FVGs)
The indicator checks for the standard 3-candle FVG structure:
Bullish FVG
  • Formed when high of candle (n-2) is below low of candle (n)
  • Indicates price moved upward too fast, leaving an imbalance below.

Bearish FVG
  • Formed when low of candle (n-2) is above high of candle (n)
  • Indicates price moved downward too fast, leaving an imbalance above.


2. Detects IFVG (Inversion Fair Value Gaps)
IFVG forms when an FVG is later retested and price reacts opposite its origin.
Bullish IFVG
  • A bullish FVG is created
  • Price returns and taps the upper boundary
  • The candle closes bullish (close > open)
  • The zone becomes a support-like inversion area

Bearish IFVG
  • A bearish FVG is created
  • Price returns and taps the lower boundary
  • The candle closes bearish (close < open)
  • The zone becomes a resistance-like inversion area


3. Draws IFVG Zones Extended to the Right
The indicator plots:
  • A top line
  • A bottom line
  • A filled area between the two lines
  • The zone extends indefinitely to the right, acting like supply/demand imbalance levels.

This makes it visually clear where price may react again in the future.

4. Separate Maximum Counts for Bullish & Bearish IFVGs
User can define:
  • How many bullish IFVG zones should be displayed
  • How many bearish IFVG zones should be displayed

Older zones are automatically removed to keep the chart clean.

5. Clean Visuals — No Labels, No Clutter
The indicator intentionally avoids:
  • Labels
  • Markers
  • Text overlays

Only clean, extended imbalance zones are shown for a professional SMC-style chart.

6. Fully Compatible with Any Timeframe
Works on:
  • Scalping (M1–M15)
  • Intraday (M30–H1)
  • Swing (H4–Daily)

The logic stays the same across all chart speeds.

7. Practical Use Cases for Traders
The indicator helps identify:
  • Areas where price is likely to return, react, or mitigate
  • Entries based on retest of imbalance
  • Potential zones for reversal, continuation, or trend confirmation


8. Advantages for SMC Traders
  • Automatically highlights hidden inefficiencies
  • Helps anticipate reversal zones
  • Filters low-quality imbalances
  • Provides structure-aligned entries
  • Reduces chart noise
  • Improves consistency in finding Smart Money levels

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.