The three-candle definition
Take three consecutive candles. In a bullish FVG the low of candle three is above the high of candle one, and the space between is the gap. In a bearish FVG the high of candle three is below the low of candle one. The middle candle is usually a large displacement candle.

How to trade an FVG
An FVG in the direction of the trend is an entry zone: in an uptrend, traders wait for price to return into a bullish FVG. The midpoint (consequent encroachment) is the most sensitive part. The stop usually goes beyond candle one or beyond the structure that created the gap. Treat FVGs against the higher-timeframe trend with caution.

IFVG: when an FVG inverts
If price fully breaks through an FVG and closes on the other side, the gap has inverted (inverse FVG) and now plays the opposite role: a broken bullish FVG becomes resistance. An IFVG right after a liquidity sweep is one of the cleanest signs of a reversal.

BPR: two overlapping FVGs
When a bullish and a bearish FVG overlap, the shared area is a balanced price range: price rushed through it twice, and the reaction there is usually strong.
Which FVGs are worth trading?
- FVGs formed after a liquidity sweep and with a break of structure.
- FVGs aligned with the higher-timeframe trend.
- FVGs formed in active hours (London and New York).
- FVGs that have not been touched yet; validity drops after the first return.
Detecting FVGs automatically in MetaTrader
Drawing every FVG by hand across timeframes is slow and subjective. An indicator that marks FVGs and IFVGs on closed candles only, without repainting, makes it fast and precise. To check whether an indicator repaints, see the guide to choosing an indicator.
My view: an FVG is a zone, not a trigger
For me an FVG is the expected zone, not the reason to enter. When price reaches it I wait for a G Candle: a candle against the prior move whose body closes beyond the whole previous candle, showing that pressure has shifted.
Examples on NASDAQ are in episode 3 of my Persian video series. — Mojtaba Ghadimi