CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

Moving average crossover: golden cross, death cross and whipsaws

This page explains how moving average crossovers are calculated, how to add them in MetaTrader, how to read them, and where they give false signals.

Extrade Pakistan editorial team ·

On this page
  1. What a moving average crossover is
  2. The formula behind it
  3. How to add MA crossovers in MT4 and MT5
  4. How to read a crossover: a drawn example
  5. Typical uses
  6. Where crossovers mislead
  7. Parameter choices for experienced traders
  8. Risk note
  9. Frequent questions

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.

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.

death crossgolden crossSMA 10SMA 30
Moving average crossover: where the fast average crosses the slow one. Crossovers lag the price and give many false signals in a range. Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

The formula behind it

A crossover uses only two inputs: the type of average and its period (N bars).

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:

  1. Open a chart, then go to Insert → Indicators → Trend → Moving Average.
  2. On the Parameters tab, set the Period, the MA method (Simple, Exponential, Smoothed, Linear Weighted) and Apply to (usually Close).
  3. Pick a colour, then click OK.
  4. 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:

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.

Typical uses

An "MA crossover strategy" usually means one of these uses, not a complete trading system:

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

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.

Related pages