What a moving average crossover is
A moving average (MA) is the average price over a set number of past bars, recalculated on every new bar. It smooths out noise so the direction of price is easier to see.
A moving average crossover happens when a faster MA (short period, reacts quickly) crosses a slower MA (long period, reacts slowly). The crossover marks a point where recent prices have moved above or below the longer-term average.
- Bullish crossover: the fast MA crosses above the slow MA.
- Bearish crossover: the fast MA crosses below the slow MA.
The terms golden cross and death cross usually refer to a bullish or bearish crossover between a medium-length and a long-length average on the daily chart. The calculation is the same as any other crossover. The names only describe a slower, longer-term version of it.
A crossover describes what price has already done. It does not predict what price will do next.
The formula behind it
A crossover uses only two inputs: the type of average and its period (N bars).
- Simple moving average (SMA): add the closing prices of the last N bars and divide by N. Every bar has equal weight. See SMA indicator.
- Exponential moving average (EMA): each new value combines the latest price with the previous EMA, using a smoothing factor that depends on N. Recent bars count more, so the EMA turns sooner. See EMA indicator.
- Weighted moving average (WMA): recent bars get linearly larger weights. See WMA indicator.
The crossover itself is simple arithmetic. When the fast MA minus the slow MA changes sign, a cross has occurred. The MACD indicator is built on this same difference between a fast and a slow EMA.
How to add MA crossovers in MT4 and MT5
The steps are the same in both platforms:
- Open a chart, then go to Insert → Indicators → Trend → Moving Average.
- On the Parameters tab, set the Period, the MA method (Simple, Exponential, Smoothed, Linear Weighted) and Apply to (usually Close).
- Pick a colour, then click OK.
- Repeat the steps with a longer period for the slow MA, and give it a different colour.
MetaTrader opens the indicator with a default period and the Simple method. Change these to the values you want to test. You can save the setup as a template, so you do not have to rebuild it on every chart. For platform details, see MetaTrader 4 and MetaTrader 5. You can practise the setup without real money on a demo account.
How to read a crossover: a drawn example
The chart below is a drawing, not real prices.
Read the chart in this order:
- Before the cross, the fast MA sits below the slow MA. Recent prices are lower than the longer average.
- At the cross, recent prices have risen enough to lift the fast average above the slow one.
- After the cross, the gap between the lines widens while the move continues, and narrows when it slows down.
The angle of the slow MA matters as much as the cross. A cross while the slow MA is flat says much less than a cross while the slow MA is already sloping in the same direction. Traders also watch how price behaves around the slow MA afterwards. See Dynamic support.
Ready to try it on a real or demo account?
Partner link · trading carries a high risk of loss
Typical uses
An "MA crossover strategy" usually means one of these uses, not a complete trading system:
- Trend filter: only consider setups in the direction implied by the fast-versus-slow position. Other tools then decide the timing.
- Regime label: a golden cross or death cross on the daily chart used as a broad description of the longer-term trend. See Market trends.
- Exit or review trigger: an opposite cross prompts a review of an open position.
- Higher-timeframe context: the crossover state on a slower chart frames decisions on a faster chart. See Multiple timeframes.
Where crossovers mislead
Whipsaws in ranges
In a sideways market the lines tangle together and cross back and forth:
Each cross looks like a signal. Each one reverses soon after, and the spread and losses add up. This is the main failure mode of crossovers.
Lag
Moving averages are lagging indicators. By the time the slow MA turns, much of the move may already be over, and the cross can come close to a reversal. See Leading vs lagging.
Spikes and gaps
A news spike can force a cross that disappears on the next bars. A weekend gap can create a cross on the first bar after the open.
The forming bar
A cross on the current, unfinished bar can vanish before the bar closes. Treat a crossover as confirmed only on a closed bar.
Parameter choices for experienced traders
- Period spacing: periods that are close together cross often and whipsaw more. Periods that are far apart cross rarely and lag more. There is no setting that avoids both problems.
- MA type: EMA pairs react sooner and give more false crosses. SMA pairs are slower and steadier. Mixing types changes the behaviour, so test any change on its own.
- Timeframe: the same periods mean very different things on an intraday chart and on a daily chart. Golden cross and death cross labels belong to the daily context.
- Regime filters: some traders ignore crosses while trend strength is low. One way to measure it is ADX and DMI. Others require price to close beyond the slow MA by some multiple of ATR.
- Testing: results change with the symbol, the period and the trading costs. Settings tuned to fit past data often fail on new data.
Risk note
A crossover is a description, not a guarantee. Leveraged forex and CFD trading can lose money fast, including during a long series of whipsaws. Before you rely on any rule, decide your position size and your stop. See Risk management and Trading strategies.
Frequent questions
Is a golden cross a buy signal?
No. It shows that the shorter average has moved above the longer one, which describes past price movement. It says nothing certain about the future.
What are the default MA settings in MT4/MT5?
MetaTrader opens the Moving Average with a default period and the Simple method. You set the period and the method yourself on the Parameters tab.
Why does my crossover appear and then disappear?
The current bar has not closed yet. The MA values keep changing until the bar closes, so the cross can undo itself.
Should I use SMA or EMA for crossovers?
EMA reacts faster but gives more false crosses. SMA is slower but smoother. Which one suits you depends on the timeframe and the symbol, so compare both on a demo account.
How can I reduce whipsaws?
Space the periods further apart, use a higher timeframe, or add a trend-strength filter. Each of these adds lag, and none removes false signals completely.
