ICT FVG Indicator for MT4 and MT5

Written by Dominic Walsh · Published · Last updated

Most gap tools bury the chart. The ict fvg indicator keeps three rectangles at most, and only for gaps price has not already traded back through. A size filter tied to the range reading throws out the rest, so what remains is the handful of levels still open.

This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Main price chart
Plots 1: ICT_FVG_Marker
Alerts popup
Inputs 8

What the Ict Fvg Indicator draws on the chart

Rectangles only, and no plotted line.

`ICT_FVG_Marker` is a DRAW_NONE buffer that shows nothing.

`InpBullFVGColor` shades an up gap medium sea green.

`InpBearFVGColor` shades a down gap tomato.

Each rectangle spans the gap it marks.

Object names all begin with `InpObjPrefix`.

  • ICT_FVG_Marker: hidden buffer, none
ict fvg indicator: Three unfilled gap rectangles on the EURUSD H1 chart.
Three unfilled gap rectangles on the EURUSD H1 chart.

How the Ict Fvg Indicator calculates its values

The three-bar hole

Two bars have to miss each other. For an up gap, the high two bars back must sit under the current low. The space between them is the gap.

Size against range

Small holes get dropped. `InpMinGapATRMult` `0.10` of the current `InpATRPeriod` `14` reading is the floor. Tying it to range rather than points makes it travel between symbols.

Only what stays open

Each candidate gets checked forward. A later close through the gap marks it filled and drops it. `InpMaxShownFVGs` `3` then keeps the newest survivors.

How to read the signals

Every rectangle on the chart is still unfilled.

Colour tells you which way the gap formed.

Three at once is the maximum you will see.

A gap vanishing means price closed through it.

`InpLookbackBars` `50` keeps the search recent.

The pane below price stays empty.

Alert channels in this build: popup, one message per closed bar.

`InpAlertOnNewFVG` is the only alert control and ships true. It raises a terminal message when a fresh unfilled gap appears. This build carries no phone, mail or sound route at all.

Every Ict Fvg Indicator input

Core settings

Setting What it does Default
InpLookbackBars bars to scan (50-bar cap). Bars the scan covers, `50`. 50
InpMaxShownFVGs show only N most recent unfilled FVGs. Unfilled gaps kept on chart, `3`. 3
InpMinGapATRMult minimum gap size as x ATR(14). Least gap size in ranges, `0.10`. 0.10
InpATRPeriod ATR period for min-gap filter. Bars behind the range figure, `14`. 14
InpObjPrefix chart-object prefix. Object name prefix, `”ICTFVG_”`. ICTFVG_

Display settings

Setting What it does Default
InpBullFVGColor bullish FVG color. Up gap shade, `clrMediumSeaGreen`. medium sea green
InpBearFVGColor bearish FVG color. Down gap shade, `clrTomato`. tomato

Alert settings

Setting What it does Default
InpAlertOnNewFVG alert on new unfilled FVG. Alert on a new gap, `true`. on
ict fvg indicator: Inputs panel with InpMinGapATRMult and InpMaxShownFVGs.
Inputs panel with InpMinGapATRMult and InpMaxShownFVGs.

Settings that fit your chart

Fifty bars is a short, deliberate window. EURUSD H1 is the reference chart. That covers two days there, so the rectangles stay relevant. On M5 the window is four hours. On H4 it reaches back a fortnight.

When the Ict Fvg Indicator fails

Fifty bars means older gaps disappear from view.

A gap is a chart pattern, not evidence of orders.

Filled means one close through, which is a loose test.

Three rectangles can hide a cluster worth seeing.

Copy the compiled Ict Fvg Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.

Related on forexmt4systems.com: ICT Style Strategy.

Download the Ict Fvg Indicator for MT4 and MT5

The zip holds the compiled Ict Fvg Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.

Download this indicator free

Enter your email and the file is yours. You also get the full MT4 and MT5 library.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

FAQ

Why tie InpMinGapATRMult to the range reading?

Because a gap worth noticing on gold is noise on a quiet cross. A tenth of the current range figure scales the filter to whatever the market is doing, which a fixed point setting cannot do.

When does InpMaxShownFVGs drop a rectangle?

When price closes back through the gap. Every candidate gets checked forward bar by bar, and one close through it in the opposite direction marks it filled, so it stops being drawn.

Why does InpMaxShownFVGs cap the chart at three?

Because a fifty-bar window on a fast chart can hold a dozen gaps, and a wall of rectangles hides the price action. Three keeps only the levels near enough to matter now.

What does the ICT_FVG_Marker buffer show?

Nothing on screen. It is declared DRAW_NONE, so the visible output is entirely chart objects. The buffer exists to satisfy the plot declaration rather than to draw anything.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Ict Fvg Indicator as one input. Always backtest before trading live.

Category: this is part of our Smart Money collection. Also, truly, browse more Smart Money for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.

External references

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

How we build, test and correct every tool: Editorial & Testing Policy. Trading carries risk; see the disclaimer.

Leave a Comment