EdgeProof

Strategies / Trend following

Moving-average crossover

Follow the trend when a fast moving average crosses a slow one, and learn which crosses deserve your money.

beginner1h · 4h · 1dTestableTested in published research

Overview

A moving-average crossover is the simplest trend-following rule there is. You track two averages of the closing price: a fast one that reacts quickly and a slow one that moves steadily. When the fast average crosses above the slow one, recent prices are rising faster than the longer average, so you buy. When it crosses below, you sell.

The behaviour it tries to catch is persistence: once a market starts trending, it often keeps going longer than people expect. The price you pay is lag. Both averages are built from past closes, so the cross only happens after price has already moved. In a sideways market the two lines cross back and forth and produce a string of small losses, known as whipsaws.

On this platform the rule uses a 20-period EMA (fast) and a 50-period EMA (slow) and flags every cross, long and short, with no other filter. That is exactly why judging quality matters: some crosses start real trends, many land in ranges, and the rule cannot tell them apart.

The evidence is real but mixed. Brock, Lakonishok & LeBaron (1992) found moving-average rules profitable on the Dow from 1897 to 1986 before costs. Sullivan, Timmermann & White (1999) showed that the best rules did not hold up in the decade after that sample once data snooping was accounted for. Treat the cross as a way to find trend candidates, not as an edge on its own.

The exact rules we test

These are the rules the platform runs over market history to find setups. Every setup you'll see in practice and tests matched them on a closed candle.

  1. Long when the fast moving average closes above the slow one after being below it
  2. Short on the opposite cross
SettingDefaultWhat it does
Fast average20 candlesCandles in the fast average. Lower reacts sooner but crosses more often in ranges.
Slow average50 candlesCandles in the slow average. Higher follows only bigger trends, with fewer and later signals.
Average typeemaEMA weights recent candles more and turns sooner; SMA treats every candle equally.

Default exits: Stop 2 ATR, target 3R, or exit on the opposite cross

Free with an account

Read the full Moving-average crossover guide

Create a free account to keep reading. It takes a minute, and you can practise and test this strategy straight after.

  • ✓ What forms the setup, with pattern diagrams
  • ✓ How to read the chart, step by step
  • ✓ Exactly where to enter, stop and take profit
  • ✓ Real examples and what happened next
  • ✓ When it works, and when it doesn't
  • ✓ How its setups did on this platform
  • ✓ Common mistakes and a pre-trade checklist
  • ✓ The evidence and references
Moving-average crossover: study guide · EdgeProof