Inversion FVG: An Indicator for Fair Value Gaps Reversals

Inversion FVG: An Indicator for Fair Value Gaps Reversals

Introduction:

The Inversion FVG indicator is designed to detect Fair Value Gaps (FVGs) and highlight their subsequent reversals. Fair Value Gaps occur when there is an imbalance between buyers and sellers, creating a price range that has not been efficiently filled by the market. This indicator marks FVGs on the chart and tracks whether price retraces back into the gap, signaling potential reversal zones.

This tool is especially useful for traders who rely on price imbalances to identify significant levels of support and resistance where price corrections or trend continuations may occur.

How the Indicator Works:

1. FVG Detection:

The indicator identifies FVGs based on specific conditions:

  • Bullish FVG: Formed when the low of the current bar is above the high from two bars ago, indicating an upward price imbalance.
  • Bearish FVG: Formed when the high of the current bar is below the low from two bars ago, indicating a downward price imbalance.

For the FVG to be valid, the gap’s size must exceed a calculated threshold that adapts to market volatility.

2. Tracking the Fair Value Gap Reversal:

Once an FVG is detected, the indicator tracks price movements to see if the FVG is “filled” by a price retracement:

  • Bullish reversal: The price closes below the lower bound of the bullish FVG, indicating the gap has been invalidated.
  • Bearish reversal: The price closes above the upper bound of the bearish FVG, signaling that the gap has been filled.

3. Drawing Visual Elements:

  • Active FVG Zones:
    • Green rectangles for bullish FVGs.
    • Red rectangles for bearish FVGs.
  • Reversal Lines: When an FVG is filled, the indicator draws a dotted line in blue to show the retracement path.
  • Midline of the FVG: A gray dotted line is drawn at the midpoint of the FVG, serving as an additional reference.

Interpretation on the Chart:

  • Bullish FVG:
    Appears as a green rectangle when detected and turns red if a reversal occurs.
  • Bearish FVG:
    Appears as a red rectangle and changes to green when price retraces and fills the gap.
  • Midpoint Line:
    The midpoint of the FVG is displayed as a horizontal gray dotted line, highlighting the center of the imbalance range.

Indicator Configuration:

Customizable Parameters:

  • dispNum: Number of detected FVGs displayed on the chart (default: 7).
  • atrMult: Multiplier for calculating the volatility-adjusted FVG size threshold (default: 0.25).
  • showbrokenFvg: Option to display filled (invalidated) FVGs on the chart (default: 0).

Adjustments:

  • Increasing dispNum allows for more FVGs to be displayed, which is useful for detailed historical analysis.
  • Setting showbrokenFvg to 1 enables the visualization of past FVGs that have been invalidated by price action.

Conclusion:

The Inversion FVG indicator is a powerful tool for identifying and visualizing price imbalances and their potential reversals. By marking areas where the market may correct inefficiencies, it provides traders with key zones for entry, exit, or stop adjustments.
It is recommended to experiment with the atrMult and dispNum parameters to adapt the indicator to different timeframes and trading strategies for optimal results.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or

Likes

avatar
Related users ' posts
@toniyecla ¡gracias! más capturas aqui: https://www.prorealcode.com/wp-content/uploads/2024/10/IC...
robert123 I had a go at the 'order block' version- badly done I'm sure....but a start. // Sonarlabs ...
robert123 take ''sens1 = 5'' out and put ''rango'' in as variable
Alai-n Hello, take a look at this formulation made by "Blade106", Topic link attached post #227334....
@toniyecla ¡interesante acercamiento! (no lo conocía, simplemente tuve la necesidad y lo programé) pers...
Razz Hello Nicolas I really like this indicator, but unfortunately it keeps drawing huge gaps fro...
Jo-01-R Bonjour Nicolas, je voulais savoir si vous aviez des competences en programation NT8 ? Car j...
lukapex hello Nicolas! i want to get in touch with you. I have my own strategy and my own indicators...
Zigo
4 years ago
JOKAMAURICE Thank you but I don't really understand. The values don't fit with what I see on my chart. I...
ckat55 Thank you Nicolas, is there any way that an alert can be set for when the dot appears?
Nicolas yes, change the last line with: RETURN wrb,qh and set an alarm with the alert tool for ea...
ckat55 Thank you Nicolas, I will try it.
juanj
7 years ago
GraHal Please forgive the daft question, but why is 3-bars-trailing-stop-williams-3.itf included a...
Kris75 Hi, Seems great but what would be the code for a stock ? Thanks, Chirs
oakenstream Paul, what is the best way in your opinion to know if I have over optimized?
bertrandpinoy BONJOUR PAUL impossible de tenter le trading automatique, PRT me dis que l instruction "GRAP...
Paul Bonjour, supprimez les lignes avec un "graph"
bertrandpinoy merci. vous l utiliser actuellment sur quel instrument vous? et quel timeframe? Merci

Top