The FVG (Fair Value Gap) indicator, also known as an imbalance, is a tool used in technical analysis to identify price imbalances in an asset. These imbalances occur when, within a price movement, there are not enough transactions at certain levels, creating a “gap” between fair buy and sell prices. These zones are referred to as “fair value gaps.”
An FVG forms when the range of one candle is not fully covered by the previous or subsequent candles, leaving a gap in the price. These areas can represent important levels of support or resistance, where the price might return to “fill” the gap before continuing its movement.
In practical terms, traders use FVGs to detect potential reversal or continuation zones. These imbalance areas suggest that the market hasn’t fully corrected pending orders at those levels, which can result in significant price moves when the market tries to balance itself.
The FVG indicator is highly useful for identifying zones where the price may reverse or continue its trend due to the presence of imbalances. These imbalances are interpreted as areas of “institutional interest,” where large orders may have been left partially unfilled, potentially causing the price to return to these levels.
A bullish FVG forms when the price moves upward, and the range of the second previous candle (close[2] > open[2]) does not fully cover the range between the right and left candles. This indicates a liquidity gap within this price range. Traders look for buying opportunities when the price returns to this area, expecting the imbalance to “close” and the market to resume its bullish trend.
A bearish FVG occurs when the price drops and the range of the second previous candle doesn’t fully cover the range between the other two candles (typically, open[2] > close[2] in a bearish setup). This suggests the market might return to that zone to fill the imbalance before continuing its bearish trend. Traders often look for selling opportunities when the price retests these areas.
The use of FVG is flexible and can be adapted to different trading styles, whether scalping, day trading, or swing trading. Traders often complement this indicator with others, such as RSI or moving averages, to increase the accuracy of their signals.
The FVG (Fair Value Gap) indicator offers flexibility in its configuration, making it adaptable to various trading styles and markets. Below are the most relevant parameters that can be adjusted and how they affect the indicator’s behavior:
The range refers to the minimum difference between the high and low of the candles required for the indicator to detect a fair value gap. In the standard code, this parameter is set to 5. This range can be adjusted according to the trader’s preferences and the characteristics of the market being traded.
The indicator defines whether the gap is bullish or bearish based on the relationship between the close and open of the second previous candle. If the close[2] is greater than the open[2], the gap is considered bullish; otherwise, it is bearish. This allows the indicator to distinguish between imbalances in bullish or bearish trends.
The FVG is visualized on the chart with rectangles and segments. The rectangles mark the gap area between the high and low of the corresponding candles, while horizontal segments divide this zone into proportional levels (halves and quarters), helping to identify intermediate interest levels.
The behavior of the FVG varies depending on the timeframe used. Imbalances detected on higher timeframes (daily, weekly) tend to have greater significance and can act as key zones for swing trading. On lower timeframes (minute, hourly), the gaps can be useful for intraday traders looking to capitalize on quick corrective moves.
The versatility of the FVG indicator allows traders to adjust it based on their needs, depending on the market and timeframe they are trading. Modifying these parameters helps optimize signals and prevents them from being based on insignificant or overly noisy movements.
The FVG (Fair Value Gap) indicator is a powerful tool for traders looking to identify market imbalances. These imbalances, represented by fair value gaps, highlight areas where the price might return to fill the gap before continuing its trend. FVGs can act as hidden levels of support or resistance, providing key points for entering or exiting a trade.
The indicator’s flexibility allows it to be adjusted to different trading styles and markets, from intraday strategies to swing trading. By combining the FVG with other indicators, such as moving averages or RSI, traders can enhance the accuracy of their signals and improve their chances of success.
In summary, the FVG provides a clear view of imbalance areas in the market, which can help identify trading opportunities in both bullish and bearish trends. However, like any tool, it’s important to use the indicator in conjunction with other forms of analysis and proper risk management.
// Author: toniyecla
// FVG (Fair Value Gap / Imbalances)
rango = 5
alcista = close[2] > open[2]
if (alcista) then
maximo = low[1]
minimo = high[3]
if (maximo-minimo > rango) then
drawrectangle(barindex[2], maximo, barindex + 1, minimo) coloured (0,157,157,32) bordercolor (0,153,153,0)
drawsegment(barindex[2], maximo - (maximo - minimo) / 2, barindex + 1, maximo - (maximo - minimo) / 2) coloured (255,255,255,64)
drawsegment(barindex[2], maximo - (maximo - minimo) / 4, barindex + 1, maximo - (maximo - minimo) / 4) coloured (255,255,255,64)
drawsegment(barindex[2], minimo + (maximo - minimo) / 4, barindex + 1, minimo + (maximo - minimo) / 4) coloured (255,255,255,64)
endif
else
maximo = low[3]
minimo = high[1]
if (maximo-minimo > rango) then
drawrectangle(barindex[2], maximo, barindex + 1, minimo) coloured (255,0,0,32) bordercolor (255,102,102,0)
drawsegment(barindex[2], maximo - (maximo - minimo) / 2, barindex + 1, maximo - (maximo - minimo) / 2) coloured (255,255,255,64)
drawsegment(barindex[2], maximo - (maximo - minimo) / 4, barindex + 1, maximo - (maximo - minimo) / 4) coloured (255,255,255,64)
drawsegment(barindex[2], minimo + (maximo - minimo) / 4, barindex + 1, minimo + (maximo - minimo) / 4) coloured (255,255,255,64)
endif
endif
return