OPEN-SOURCE SCRIPT

FVG & IFVG ICT [TradingFinder] Inversion Fair Value Gap Signal

🔵Introduction


🟣Fair Value Gap (FVG)

To spot a Fair Value Gap (FVG) on a chart, you need to perform a detailed candle-by-candle analysis.

Here’s the process:

  1. Focus on Candles with Large Bodies: Identify a candle with a substantial body and examine it alongside the preceding candle.
  2. Check Surrounding Candles: The candles immediately before and after the central candle should have long shadows.
  3. Ensure No Overlap: The bodies of the candles before and after the central candle should not overlap with the body of the central candle.
  4. Determine the FVG Range: The gap between the shadows of the first and third candles forms the FVG range.



anlık görüntü


🟣ICT Inversion Fair Value Gap (IFVG)

An ICT Inversion Fair Value Gap, also known as a reverse FVG, is a failed fair value gap where the price does not respect the gap. An IFVG forms when a fair value gap fails to hold the price and the price moves beyond it, breaking the fair value gap.

This marks the initial shift in price momentum. Typically, when the price moves in one direction, it respects the fair value gaps and continues its trend.

However, if a fair value gap is violated, it acts as an inversion fair value gap, indicating the first change in price momentum, potentially leading to a short-term reversal or a subsequent change in direction.




🟣Bullish Inversion Fair Value Gap (Bullish IFVG)

anlık görüntü


🟣Bearish Inversion Fair Value Gap (Bearish IFVG)

anlık görüntü


🔵How to Use

🟣Identify an Inversion Fair Value Gap

To identify an IFVG, you first need to recognize a fair value gap. Just as fair value gaps come in two types, inversion fair value gaps also fall into two categories:

🟣Bullish Inversion Fair Value Gap

A bullish IFVG is essentially a bearish fair value gap that is invalidated by the price closing above it.

Here’s how to identify it:

  1. Identify a bearish fair value gap.
  2. When the price closes above this bearish fair value gap, it transforms into a bullish inversion fair value gap.


This gap acts as support for the price and drives it upwards, indicating a reduction in sellers' strength and an initial shift in momentum towards buyers.

anlık görüntü


🟣Bearish Inversion Fair Value Gap

A bearish IFVG is primarily a bullish fair value gap that fails to hold the price, with the price closing below it.

Here’s how to identify it:

  1. Identify a bullish fair value gap.
  2. When the price closes below this gap, it becomes a bearish inversion fair value gap.


This gap acts as resistance for the price, pushing it downwards. A bearish inversion fair value gap signifies a decrease in buyers' momentum and an increase in sellers' strength.


anlık görüntü


🔵Setting


🟣Global Setting

Show All FVG: If it is turned off, only the last FVG will be displayed.

Show All Inversion FVG: If it is turned off, only the last FVG will be displayed.

FVG and IFVG Validity Period (Bar): You can specify the maximum time the FVG and the IFVG remains valid based on the number of candles from the origin.

Switching Colors Theme Mode: Three modes "Off", "Light" and "Dark" are included in this parameter. "Light" mode is for color adjustment for use in "Light Mode".

"Dark" mode is for color adjustment for use in "Dark Mode" and "Off" mode turns off the color adjustment function and the input color to the function is the same as the output color.


🟣Logic Setting


FVG Filter

When utilizing FVG filtering, the number of identified FVG areas undergoes refinement based on a specified algorithm. This process helps to focus on higher quality signals and eliminate noise.

Here are the types of FVG filters available:

  1. Very Aggressive Filter: Introduces an additional condition to the initial criteria. For an upward FVG, the highest price of the last candle must exceed the highest price of the middle candle. Similarly, for a downward FVG, the lowest price of the last candle should be lower than the lowest price of the middle candle. This mode minimally filters out FVGs.
  2. Aggressive Filter: Builds upon the Very Aggressive mode by considering the size of the middle candle. It ensures the middle candle is not too small, thereby eliminating more FVGs compared to the Very Aggressive mode.
  3. Defensive Filter: In addition to the conditions of the Very Aggressive mode, the Defensive mode incorporates criteria regarding the size and structure of the middle candle. It requires the middle candle to have a substantial body, with specific polarity conditions for the second and third candles relative to the first candle's direction. This mode filters out a significant number of FVGs, focusing on higher-quality signals.
  4. Very Defensive Filter: Further refines filtering by adding conditions that the first and third candles should not be small-bodied doji candles. This stringent mode eliminates the majority of FVGs, retaining only the highest quality signals.


Mitigation Level FVG and IFVG : Its inputs are one of "Proximal", "Distal" or "50 % OB" modes, which you can enter according to your needs. The "50 % OB" line is the middle line between distal and proximal.


🟣Display Setting

Show Bullish FVG: Enables the display of demand-related boxes, which can be toggled on or off.
Show Bearish FVG: Enables the display of supply-related boxes along the path, which can also be toggled on or off.
Show Bullish IFVG: Enables the display of demand-related boxes, which can be toggled on or off.
Show Bearish IFVG: Enables the display of supply-related boxes along the path, which can also be toggled on or off.


🟣Alert Setting

Alert FVG Mitigation: If you want to receive the alert about FVG's mitigation after setting the alerts, leave this tick on. Otherwise, turn it off.

Alert Inversion FVG Mitigation: If you want to receive the alert about Inversion FVG's mitigation after setting the alerts, leave this tick on. Otherwise, turn it off.


Message Frequency: This parameter, represented as a string, determines the frequency of announcements. Options include: 'All' (triggers the alert every time the function is called), 'Once Per Bar' (triggers the alert only on the first call within the bar), and 'Once Per Bar Close' (activates the alert only during the final script execution of the real-time bar upon closure). The default setting is 'Once per Bar'.

Show Alert time by Time Zone: The date, hour, and minute displayed in alert messages can be configured to reflect any chosen time zone. For instance, if you prefer London time, you should input 'UTC+1'. By default, this input is configured to the 'UTC' time zone.

Display More Info: The 'Display More Info' option provides details regarding the price range of the order blocks (Zone Price), along with the date, hour, and minute. If you prefer not to include this information in the alert message, you should set it to 'Off'.
Candlestick analysisChart patternseducationalfairvaluegapfvgictifvgimbalanceinefficiencyinversionfairvaluegapsignalstradingfinder

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının yazarı komut dosyasını açık kaynak olarak yayınlamıştır, böylece yatırımcılar betiği anlayabilir ve doğrulayabilir. Yazar çok yaşa! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun yayında yeniden kullanımı Ev kurallarına tabidir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?


Get Access to TradingFinder indicators and Education for FREE: tradingFinder.com/

Forex, Crypto, Stocks, Futures & Index informational materials and Trading Tools in Turkish language: tradingFinder.com/tr/
Aynı zamanda::

Feragatname