Strategy Library

Trend

Moving average crossover

A fast average crossing above a slow one marks a possible uptrend, and crossing below a possible downtrend. It is trend following: it tells you the direction now, late, rather than predicting it. The classic pair is the 50 and 200 day (the golden cross and death cross).

BeginnerIndices, crypto, forex, goldAny session; most often daily chartsH4, D1

Example 01

Moving average crossover on a chart

BTCUSD · D1Bullish crossdecline, cross, trend

Low: 36,73150 crosses 200: 41,868Entry, on the close: 45,024Days after the low: 64Sample candles, not market data

The rules

Setup
  • Choose one pair of averages and one type, for example the 50 and 200 SMA on the daily chart
Entry
  • Enter after a candle closes with the fast average above the slow one (below it for a short)
Stop
  • Out on the opposite cross, or on a close beyond the faster average, as your written rule says
Target
  • None: a crossover system exits on its exit signal, not at a target
Manage
  • Act only on closed candles, never on a cross that appears and vanishes mid-candle

Common mistakes

  • Trading crosses in a sideways market. With no trend, crossovers give many false signals in a row.
  • Expecting early entries. Crosses come late by design: the move has started before the signal.
  • Judging it on a few signals. A daily 50 and 200 cross happens rarely, so a short test says little.
  • Treating it as advice to buy. Sources say a cross alone is not a reason; check it with your other rules.

When it's off

  • Skip it when the averages are flat and bunched together
  • Expect losses when the averages cross back quickly (a whipsaw)

Words to know

Moving average
The average closing price over a set number of candles, drawn as a line; the exponential version (EMA) weights recent candles more than the simple one (SMA). Traders use it as a trend filter or as a moving level for pullbacks.
Moving average crossover
A signal when a faster moving average crosses above (bullish) or below (bearish) a slower one. The golden cross and death cross specifically mean the 50-day crossing the 200-day.
Whipsaw
Quick crosses back and forth that stop you out again and again.
Lag
The delay an average has because it is built from past prices.

When you make it yours, I'll ask what the rules above leave open. Start with one of these:

  • Which average type and lengths do you use, and why those?
  • Do you act on the candle close or as soon as the lines touch?
  • What keeps you out of sideways markets?
Ask Edge in DT Terminal

From DT Academy

What testing exists

Older studies found moving average rules made money on stock indices, but the results weaken once you correct for data mining, trading costs and more recent data.

Before you trust a backtest

  • Many professional traders risk under 1% of their account on one trade idea, and the common guideline is 1 to 2%.
  • The more versions of a rule you try on the same data, the more likely a good backtest is luck. Decide your rules before you test.
  • Include spread and commission, and practice on dates you have not looked at, before you trust a result.

Sources