Moving average alerts in MetaTrader 5
A moving average alert answers one of two questions: did price cross my average, or did my fast average cross my slow one? MetaTrader 5 can draw both and alert on neither. fx-alert reads the averages already on your chart and tells you the moment the crossing happens, on the close of the candle that made it.
What a moving average is measuring
The average closing price of the last N candles, redrawn each candle — which is why it lags: half its input is behind you by design. The method decides how that lag is distributed. A simple average treats every candle in the window equally; exponential and linear-weighted ones lean on the recent candles. A 20-period average on M15 and a 20-period average on H1 describe different stretches of time, so the timeframe is part of the setting, not a detail.
When traders reach for it
Three uses cover most of it: a side marker (price above or below one average), a trend filter (fast average above or below a slow one), and a dynamic level that drifts with the market rather than sitting at a fixed price the way a horizontal line does. The third is the one traders most often want an alert for, because it is the one you cannot set as a fixed-price alert at all.
How to set it in fx-alert
- Put the moving averages you want on your MT5 chart, with the period, method, shift and applied price you use. fx-alert reads all of it from the chart.
- On that chart, press + Alert, then choose Indicator.
- Pick the average you want to watch.
- Choose the other side of the condition:
- a price — Close, Open, High or Low on the close, or Ask/Bid every tick;
- a second average — this is the crossover, and it is ONE alert, not two;
- a number you type, if you want a fixed price on the other side.
- Choose On close or Every tick, pick your channels, and press Set alert.
A crossover costs one slot. "Price above the fast average, fast average above the slow one" also fits in a single alert — a left side, the indicator, and a right side is the full shape an alert can hold.
Common mistakes
Setting a filter that is already true. If MA(20) is already below MA(50) when you create the alert, fx-alert holds it until they cross back, then arms. Set the alert before the crossing you are waiting for, not after.
Mixing methods without noticing. An EMA(50) and an SMA(50) cross at different moments. fx-alert takes the method from the chart, so the alert matches what you are looking at — but two averages that look alike on screen may not be alike.
Two identical averages on one chart. If the same average is on the chart twice with the same settings, fx-alert offers both and marks them, because MetaTrader hands back the first one when asked by name. Remove the duplicate and the ambiguity goes.
Every tick on a slow average. An average built on closes barely moves inside a candle; what moves is the price crossing it, which can cross back before the candle ends. On close is the default for that reason.
Pair it with
Moving averages live on the price scale, so they can be compared with price and with each other inside a single alert — but not with RSI or MACD, which have scales of their own. The usual pairing is a trend filter plus your own line: see the combinations page.
fx-alert is an alert tool, not investment advice. It reports that a condition you set became true; what to do about it is always your decision. Trading forex and CFDs carries a high risk of losing money.