Fair Value Gaps (FVG) highlight imbalances areas between market participants and have become popular amongst technical analysts. The following script aims to display fair value gaps alongside the percentage of filled gaps and the average duration (in bar) before gaps are filled.
Fair Value Gaps (FVG) highlight imbalances areas between market participants and have become popular amongst technical analysts. The following script aims to display fair value gaps alongside the percentage of filled gaps and the average duration (in bar) before gaps are filled.
Users can be alerted when an FVG is filled using the alerts built-in this script.
In practice, FVG's display areas of support ( bullish FVG) and resistances ( bearish FVG). Once a gap is filled, suggesting the end of the imbalance, we can expect the price to reverse.
This approach is more contrarian in nature, users wishing to use a more trend following approaching can use the identification of FVG as direct signals, going long with the identification of a bullish FVG, and short with a bearish FVG. No studies highlight the precision of such methods.
The gap height can be used to determine the degree of imbalance between buying and selling market participants.
Various techniques exist for the identification of FVG's, we use the following rules on our script:
Upper Bullish FVG = lowLower Bullish FVG = high(t-2)
Upper Bearish FVG = low(t-2)Lower Bearish FVG = highwhere %change = (close(t-1) - open(t-1)) / open(t-1) * 100.