Skip to content
Forex Indicator System Thailand
Back to marketplace
PatternIndicator

FVG (Fair Value Gap zones)

An indicator that draws boxes on the chart over the price gap across three candles (Fair Value Gap), coloured by direction

FVG (Fair Value Gap zones) on an MT5 chart
Example on an MT5 chart

Download the indicator free

Download right away. Nothing to fill in.

Version
1.03
Published
11/21/2026
File size
20 KB

Open source, MIT License, by rpanchyk. See licences

Version history

  1. 1.03Current11/21/2026 · 20 KB

    First release on this site.

How to read it

A light green box is a bullish Fair Value Gap and a light pink box is a bearish one (the colours can be changed). The box covers the gap between the wicks of the 1st and 3rd candles of a three-candle group. A box that still extends to the right is a gap price has not come back to. When a bar reaches the edge of the box, the box stops at that bar. Traders commonly treat a still-open box as a zone price may return to and test.

You can change the bullish box colour (InpUpTrendColor) and bearish colour (InpDownTrendColor), choose solid or transparent fill (InpFill), the border style (InpBoderStyle) and the border width (InpBorderWidth). If you turn off InpContinueToMitigation, a box is only as wide as the three candles that formed it and does not extend with price. InpDebugEnabled turns on verbose messages in the Experts tab. The objects it draws have names starting with FVG and are removed when the indicator is taken off the chart.

It works on every timeframe, reads closed bars and calculates only when a new bar opens. It sends no alerts.

Parameters

NameDefaultDescription
InpContinueToMitigationtruetrue = extend the box to the right until price returns into the gap. false = show the box only over the span of the gap.
InpDownTrendColorclrLightPinkBox colour for bearish gaps.
InpUpTrendColorclrLightGreenBox colour for bullish gaps.
InpFilltruetrue = fill the box with solid colour. false = transparent, border only.
InpBoderStyleBORDER_STYLE_SOLIDBox border style (Solid or Dash).
InpBorderWidth2Width of the box border.
InpDebugEnabledfalsetrue = write verbose troubleshooting messages to the Experts tab.

Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Indicators folder.
  4. Right-click Indicators in the Navigator window and choose Refresh (or restart MT5).
  5. Drag the indicator onto a chart, adjust the Inputs if you like, then click OK.

Description

This indicator finds Fair Value Gaps: price gaps created by three consecutive candles, where the wicks of the first and third candles do not overlap. It draws a box over each gap on the chart. Light green boxes are bullish gaps and light pink boxes are bearish gaps (the colours can be changed).

With InpContinueToMitigation on, a box keeps extending to the right until price comes back into the gap, then stops at that bar. With it off, the box covers only the span of the gap itself.

The indicator also keeps 3 hidden buffers (upper edge of the gap, lower edge and direction) that an EA or another indicator can read through iCustom. It uses closed bars only, opens no trades and sends no alerts.

Banners from the Exness partner programme

Exness banner: gold spreads*

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.