The m5 gold scalping indicator carries a filter that actually filters. Range must reach `InpATRMult` `1.3` times its own fifty-bar average. Most builds set that multiple under one, where it barely rejects anything.
This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from XAUUSD M5.
| Platforms | MT4 (.ex4) + MT5 (.ex5) |
|---|---|
| Chart window | Main price chart |
| Plots | 4: EMA Fast, EMA Slow, BUY, SELL |
| Alerts | popup |
| Inputs | 9 |
What the M5 gold scalping Indicator draws on the chart
`EMA Fast` runs dodger blue at `InpFastEMA` `5`.
`EMA Slow` runs orange at `InpSlowEMA` `13`.
`BUY` uses arrow 233 and `SELL` uses arrow 234.
Both arrows draw at width four, so they stay visible on a fast chart.
- EMA Fast: line, dodger blue, width 2
- EMA Slow: line, orange, width 2
- BUY: arrow, lime, width 4, arrow code 233
- SELL: arrow, red, width 4, arrow code 234

How the M5 gold scalping Indicator calculates its values
A short crossing starts it
iMA gives both averages in exponential mode. A buy wants the fast line under the slow one on the previous bar, then above it on this one.
Momentum uses split levels
iRSI at `InpRSIPeriod` `7` must reach `InpRSIBuyLevel` `55.0` for a buy, or fall under `InpRSISellLevel` `45.0` for a sell. Splitting the levels leaves a dead band the midpoint version does not have.
Range must genuinely expand
iATR at `InpATRPeriod` `7` gets held against its own average over `InpATRAvgBars` `50` bars. The current reading has to beat that average times `InpATRMult` `1.3`.
How to read the signals
The range filter rejects most bars, so marks are genuinely scarce.
A dead band between 45 and 55 blocks crosses with no momentum behind them.
The screenshot note picks XAUUSD M5, which is what the settings suit.
Nothing in the code checks the symbol, so it loads anywhere.
Alert channels in this build: popup, one message per closed bar.
A single route ships here. `InpAlerts` arrives true and posts a terminal message on a new mark. There is no phone option, no mail option and no audio option among the inputs. The guard holds it to one message per closed bar.
Every M5 gold scalping Indicator input
Core settings
| Setting | What it does | Default |
|---|---|---|
InpFastEMA |
Fast EMA period. Length of the quick average, default `5`. | 5 |
InpSlowEMA |
Slow EMA period. Length of the slower average, default `13`. | 13 |
InpRSIPeriod |
RSI period. Window behind the momentum check, default `7`. | 7 |
InpATRPeriod |
ATR period. Window behind the range check, default `7`. | 7 |
InpATRAvgBars |
Bars to average ATR. Bars forming the range baseline, default `50`. | 50 |
InpATRMult |
Gold-vol multiplier (ATR > avg * this). Multiple of that baseline the reading must beat, default `1.3`. | 1.3 |
InpRSIBuyLevel |
RSI threshold for BUY. Level the reading must reach for a buy, default `55.0`. | 55.0 |
InpRSISellLevel |
RSI threshold for SELL. Level it must fall under for a sell, default `45.0`. | 45.0 |
Alert settings
| Setting | What it does | Default |
|---|---|---|
InpAlerts |
Alert on new signal. Terminal message on a new mark, default `true`. | on |

Settings that fit your chart
The name and the screenshot note both point at one chart. XAUUSD M5 is the reference chart, where gold expands enough to clear the range filter regularly. On a quiet currency pair the filter blocks nearly everything.
When the M5 gold scalping Indicator fails
A strict range filter means missing the start of a move that builds slowly.
Gold spreads widen sharply around news, which a five-minute chart feels hardest.
Two short averages still cross for no reason when range happens to be high.
Copy the compiled M5 gold scalping 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.
Background reading on the method behind the M5 gold scalping Indicator: Implicit contract theory on Wikipedia, Dow Jones Global Indices at StockCharts ChartSchool.
Download the M5 gold scalping Indicator for MT4 and MT5
The zip holds the compiled M5 gold scalping 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 is InpATRMult 1.3 unusual?
Because most builds put that multiple below one, where nearly every bar passes. At 1.3 the current range must genuinely beat its own fifty-bar average, so quiet conditions produce no marks at all.
What does the gap between InpRSIBuyLevel and InpRSISellLevel do?
It creates a dead band between 45 and 55. A cross that happens while momentum sits in that band produces nothing, which removes the crosses with no conviction behind them.
What does a 7-bar InpATRPeriod buy you?
A short window reacts fast, which matters on a five-minute chart where conditions change within an hour. Seven bars is under an hour of gold trading, so the filter tracks the current session closely.
Does this build check that the symbol is gold?
No. Nothing in the code reads the symbol name, so it loads on any chart. The settings are tuned for gold on five minutes, which is where the name points rather than a restriction.
Are results guaranteed?
No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the M5 gold scalping Indicator as one input. Always backtest before trading live.
Category: this is part of our Signal and Forecast collection. Next, plainly, yet, browse more Signal and Forecast for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- The core method is documented in Implicit contract theory on Wikipedia.
- Additional market context is at Dow Jones Global Indices at StockCharts ChartSchool.
