Fair Value Gap Indicator MT5: How to Spot FVGs on Gold

Fair Value Gap Indicator MT5: How to Spot FVGs on Gold

A fair value gap (FVG) is a three-candle pattern where price moved so fast that the wick of the first candle and the wick of the third candle do not overlap, leaving a “gap” in the middle candle’s body. A fair value gap indicator for MT5 finds these zones for you, draws them as boxes, and tracks whether price comes back to fill them. It does not predict anything on its own: it simply turns a visual idea into fixed, testable rules. This guide explains how FVGs are defined, how to read them on gold (XAUUSD), which settings matter, and how to turn the idea into an indicator or Expert Advisor you can test on a demo account first.

Last reviewed: 30 November 2026.

01What Is a Fair Value Gap?

The term comes from “Smart Money” and ICT-style price action trading. The idea is that when one side of the market overwhelms the other, price skips through a range where very little two-way trading happened. That thin area is called a fair value gap, an imbalance or an inefficiency. Many traders watch it because price often revisits such areas later, although there is no guarantee that it will.

The definition is mechanical, which is what makes it suitable for code:

  • Bullish FVG: the low of candle 3 is above the high of candle 1. The gap zone runs from candle 1’s high up to candle 3’s low.
  • Bearish FVG: the high of candle 3 is below the low of candle 1. The gap zone runs from candle 3’s high up to candle 1’s low.
  • Candle 2 is the strong “displacement” candle that created the gap. It is usually large compared with the candles around it.

Because the rule only uses highs and lows of closed candles, an FVG is fixed once candle 3 closes. What changes afterwards is its status: untouched, partly filled or fully filled.

02Why FVGs Matter on Gold Right Now

Fast markets create more gaps, and gold has been fast. After sliding to its weakest level in about 15 months during Thanksgiving week, gold bounced back above $3,600 on Friday 27 November, according to Kitco, and it extended the move above $3,650 on Monday 30 November, according to Trading Economics. Both sources point to US interest-rate expectations and the dollar as the main drivers, with US payroll data due this week.

A sharp rebound like this is the kind of move that tends to leave bullish fair value gaps on the H1 and H4 charts. If your rules say “only trade pullbacks into untouched gaps in the direction of the trend”, the next pullback is where those rules would be tested. That is a reason to study the chart, not a signal to trade: the same move could just as easily reverse through every gap it left behind.

On the H4 chart of gold from 19 to 30 November, the fair value gaps are easy to see. The sharp drop on 19 November left two bearish gaps at roughly 3,687–3,711 and 3,718–3,726. The strong rebound candle on 27 November left a wide bullish gap at roughly 3,594–3,639, plus a smaller one just above it. On 30 November price spiked up into the lower bearish gap near 3,705, was pushed back, and traded around 3,646, still above the larger bullish gap. In FVG terms, price is sitting between an unfilled bullish zone below and unfilled bearish zones above. How it leaves that range is what any FVG rules would have to deal with next.

⚠️

Gaps are not support. A gap is a zone where price moved quickly. Price can return, react and continue, or slice straight through it. Treat every FVG as an area of interest that still needs confirmation.

📅

News candles create the biggest gaps. On payroll and Fed days a single M5 or M15 candle can leave a very wide FVG. Many traders filter these out or wait for the spread to normalise.

03How a Fair Value Gap Indicator Works in MT5

Drawing gaps by hand is slow and inconsistent. An MT5 indicator applies the same rules on every bar, so you can review history and see whether the idea has any value on your symbol and timeframe. A well-built FVG indicator usually does four jobs:

Detect

On each new closed bar it compares candle 1 and candle 3 and records a bullish or bearish gap when the rule is met.

Filter

It ignores tiny gaps, for example anything smaller than a set fraction of ATR, so spread noise does not fill the chart with boxes.

Track

It follows each zone forward and marks it as touched, half filled (the 50% “consequent encroachment” level) or fully mitigated.

Alert

It can notify you when a new gap forms or when price returns into an open gap, through terminal pop-ups, push or e-mail.

For an Expert Advisor the indicator should write its zones to buffers rather than only drawing chart objects, so the EA can read the top, bottom and status of each gap through iCustom without guessing from pixels.

04Reading Bullish and Bearish FVGs

The gap alone is not a trade. Most FVG approaches combine the zone with context: trend direction, market structure and where the gap sits relative to recent highs and lows. Here is a typical way traders describe each side. Treat it as a checklist to test, not as rules that work.

📈 Bullish signal

  • A bullish FVG forms after a break of a recent swing high (a break of structure).
  • Price pulls back into the gap without closing below its lower edge.
  • A reaction candle closes back up out of the zone.
  • Stop placed below the gap or the swing low; target at the next liquidity high.

📉 Bearish signal

  • A bearish FVG forms after a break of a recent swing low.
  • Price rallies into the gap without closing above its upper edge.
  • A reaction candle closes back down out of the zone.
  • Stop placed above the gap or the swing high; target at the next liquidity low.

If you already follow market structure, FVGs fit naturally with breaks of structure and change-of-character signals. Our article on why CHoCH signals keep failing covers that side, and the order block guide for gold shows how zone-based levels behave in a news-driven market. Order blocks and FVGs are often found next to each other, because the candle before a displacement move is frequently treated as the order block.

05Settings to Start With

There is no universal FVG setting. The values below are starting points to test on a demo account and in the Strategy Tester, not recommendations. Gold’s volatility changes a lot from week to week, which is why ATR-based filters usually travel better than fixed point values.

Setting What it controls Starting point to test
Timeframe Which chart the gaps are found on H1 for zones, M15 for entries
Minimum gap size Ignores very small imbalances 0.25–0.5 × ATR(14)
Displacement filter Requires candle 2 to be a strong candle Body ≥ 1.5 × average body of last 20 bars
Mitigation rule When a gap counts as “used” Close beyond the far edge, or touch of the 50% level
Maximum age How long an unfilled gap stays active 50–100 bars
Session filter Which hours count London and New York sessions only
News filter Skips gaps made by data releases Ignore gaps formed 15 min either side of high-impact news

Change one setting at a time and keep notes. If an idea only looks good with very specific values on one month of data, it is probably fitted to the past.

06Step by Step: From FVG Idea to a Testable MT5 Tool

Whether you build it yourself or brief a developer, the work follows the same order. Skipping steps 2 and 3 is the most common reason FVG tools disappoint.

01

Write the exact definition

State the three-candle rule, the minimum size and whether wicks or bodies are used. “Big gap” is not a rule; “gap ≥ 0.3 × ATR(14)” is.

02

Define what “filled” means

Decide whether a gap is finished on the first touch, at the 50% level or only when a candle closes beyond its far edge. This changes results more than any other setting.

03

Add context filters

Trend direction (for example price above a moving average or a recent break of structure), session hours and a news filter.

04

Build the indicator with buffers and alerts

Buffers for gap top, bottom and status let an EA read the zones later. Alerts on new gaps and on returns keep you from staring at charts.

05

Test, then demo

Run it in the Strategy Tester with “Every tick based on real ticks” where your broker supports it, then forward-test on a demo account before any live money.

If you want to hand this to a developer, our guide on how to write an EA brief shows how to write these rules so the quote is accurate and nothing is left to interpretation.

07Common FVG Mistakes

  • Trading every gap. Busy charts produce dozens of small gaps a day. Without a size and context filter most of them are noise.
  • Ignoring the spread. On gold a small gap can be narrower than the spread during the Asian session or around news, so the “gap” is not really tradable.
  • Moving the definition after the fact. Switching between body gaps and wick gaps, or between first touch and 50% fill, depending on what looks good, makes any review meaningless.
  • Forgetting higher timeframes. An M5 bullish gap inside an H4 bearish gap is a very different situation from one that agrees with the bigger picture.
  • Skipping the demo stage. Live fills, slippage and spread widen on fast days. A demo account shows this before it costs money.

08Frequently Asked Questions

Is a fair value gap the same as a price gap?

No. A classic price gap is empty space between one candle’s close and the next candle’s open, common on stocks over weekends. An FVG appears inside continuous trading: the candles touch, but the wicks of candle 1 and candle 3 do not overlap.

Do fair value gaps always get filled?

No. Many gaps are revisited, but some are never filled, and others are filled only after price has moved a long way. That is why mitigation rules and a maximum age are part of any serious FVG tool.

Which timeframe is best for FVGs on gold?

There is no best timeframe. Many traders mark zones on H1 or H4 and look for entries on M15 or M5. Test your own combination in the Strategy Tester and on a demo account.

Can an Expert Advisor trade fair value gaps automatically?

Yes, if the rules are written precisely: gap definition, fill rule, entry trigger, stop, target and filters. An EA cannot read “looks strong”, so every condition must be a number or a yes/no check.

Have a Fair Value Gap Indicator Built for MT5

Want FVG zones, fill tracking and alerts on your own charts, or an EA that trades your gap rules with a news and session filter? Send us your rules and we reply with a free quote and a timeline before any work starts. Custom indicators and EAs start from $50, source code is included and fixes after delivery are free.

Get a free quote See our order block indicator

Trading involves risk and you can lose money. This article is educational software content, not financial advice or a trading signal. Always test on a demo account first.

· · · ·

Related articles

Need a team that can design, build and maintain it all?

Let's talk. Tell us about your project and we'll reply with honest timelines.