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

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 |

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.
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
- The core method is documented in Clearing (finance) on Wikipedia.
- Additional market context is at Pivotpoint at Investopedia.
