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

What forms the setup

Fast and slow averages

The 20-EMA follows recent closes; the 50-EMA follows the broader move. The signal is the closed candle on which the fast line ends up on the other side of the slow line. The platform marks the slow average's level on the chart.

Trend on the higher timeframe

A cross that agrees with the trend one timeframe up has the wind behind it. A cross against it is often just a pullback that will reverse.

Range or trend

Inside a range the two averages flatten, tangle and cross every few days. Crosses that leave a range, or follow a clear shift in structure, carry more information.

Swing structure

Higher highs and higher lows behind a bullish cross (or the reverse for a bearish one) confirm that the trend is real and not just an average catching up.

Volatility and the stop

The stop is 2 × ATR(14) from the entry. ATR is the average candle range, so the stop widens in wild markets and tightens in quiet ones.

How to read the chart, step by step

  1. Find the cross. Look at the setup candle, the last candle on the chart. Its close put the 20-EMA above the 50-EMA (long) or below it (short), and on the candle before, the fast line was on the other side. The reason is listed beside the chart.
  2. Use closed candles only. The cross is measured on finished candles. A cross that appears halfway through a candle and disappears by its close never counts, so never act on a forming candle.
  3. Read what came before. Scroll back and count how many times the averages crossed in the last 50 to 100 candles. Several recent crosses mean a range, where this rule loses most often. A long stretch with the lines clearly apart, followed by a fresh cross, is the clean case.
  4. Judge how far price has run. Because both lines lag, price has usually travelled a good distance before they cross. If the setup candle is far from the 50-EMA, or follows a run of large candles, you are late and the first pullback may hit your stop.
  5. Locate the stop. The stop sits 2 × ATR(14) beyond the entry. See where that lands. Beyond a clear swing low (for a long) or swing high (for a short) is better than in the middle of recent chop.
  6. Check room to the target. Your target is a multiple of the stop distance. Look for a swing high, a round number or a range edge between entry and target that price must get through.

Entry

Enter at the close of the setup candle: the first closed candle on which the 20-EMA has crossed the 50-EMA. Long on a cross up, short on a cross down. Both directions are flagged and nothing else is required, so the cross only tells you that a trend may be starting. Your judgement decides whether it is worth taking.

Stop

The platform uses an ATR stop: 2 × ATR(14) below the entry for a long, above it for a short. This rule has no structural stop. The library card also mentions exiting on the opposite cross, but in tests the stop stays fixed at 2 ATR, so check whether that distance clears recent swing points. A stop sitting inside the last few candles' noise is easy to hit even when the trend is real.

Target

In tests you set the target as a multiple of the stop distance (1R to 4R). With a 2-ATR stop, the card's 3R target needs a move of about 6 ATR in your favour. If neither the stop nor the target is hit within the test window (48 candles on 1h, 30 on 4h, 20 on 1d), the trade is closed at the last candle's close. In real trading many trend followers exit on the opposite cross instead, which lets big trends run but gives back profit at the end.

Real examples and what happened

Three setups from the practice pool, with the 2R outcome after costs. Faded candles are what came next; the ring marks the exit.

slow MAEntry 1.00033Stop 0.997262R 1.00646
EUR/USD 1h long · 2022-08-26 · +1.97R
slow MAEntry 1.16940Stop 1.167052R 1.17411
EUR/USD 1h long · 2025-08-15 · -1.04R
slow MAEntry 1.22415Stop 1.228472R 1.21552
GBP/USD 1h short · 2022-06-28 · +1.97R

When it works, and when it doesn't

Helps

  • The averages were clearly apart before, then crossed after a decisive break of structure in the new direction.
  • The cross agrees with the trend on the next higher timeframe.
  • Price is leaving a range, not sitting in its middle.
  • Volatility is normal or rising, so a move of several ATR inside the test window is realistic.
  • Long, persistent trends.

Hurts

  • The averages have crossed several times in the last few dozen candles: a range.
  • Both averages are flat and price keeps returning to them.
  • The cross comes after a long, extended run and right into a higher-timeframe support or resistance level.
  • Very quiet hours or holiday trading, where the move you need is unlikely to come inside the window.
  • Sideways markets, where the averages cross back and forth (whipsaws).

How its setups did on this platform

From 1,867 practice-pool setups at a 2R target after costs: 34% reached a profit, average -0.12R per setup. This is the rules alone, taking every setup. Your job in a test is to beat that by choosing.

ConditionSetupsWonAverage
Session: Asia45032%-0.17R
Session: London41032%-0.11R
Session: New York50937%-0.04R
Session: London/NY overlap27834%-0.10R
Session: Off-hours22032%-0.20R
Gold fix windows34537%-0.03R
Weekend gap17736%-0.04R
High-volatility regime31535%-0.05R
Range day (so far)9036%-0.05R
Low-volatility squeeze42435%-0.08R
Trend day (so far)53535%-0.08R
New York reversal24234%-0.09R
Strong trend45235%-0.10R
Tight Asian range127434%-0.11R
Holiday-thin trading16833%-0.13R
London open window16528%-0.20R
Month / quarter end6013%-0.59R

Past results on historical data; small groups are noisy. Use it to ask better questions, not as a promise.

Common mistakes

  • Treating every cross as equal. The rule finds candidates; your job is to drop the ones in ranges.
  • Forgetting the lag: the cross confirms a move that has already happened, so the easy part may be over.
  • Accepting a stop that sits inside obvious noise or right at a swing point everyone can see.
  • Choosing a large R target on a timeframe where the test window is too short for the move to finish.
  • Taking sharp-looking crosses against the higher-timeframe trend.

Pre-trade checklist

  • ☐Did the 20-EMA close across the 50-EMA on the setup candle?
  • ☐Were the averages apart, not tangled, before this cross?
  • ☐Does the cross agree with the higher-timeframe trend?
  • ☐Is price leaving a range rather than sitting inside one?
  • ☐Is the entry still reasonably close to the 50-EMA?
  • ☐Does the 2-ATR stop sit beyond nearby swing points?
  • ☐Is there room to the target before the next obvious level?

Practising it

  • In the Practice Center, count the crosses in the visible history before every decision. After each instant reveal, note whether charts with many recent crosses lost more often for you.
  • Give every take and every skip a short reason. After 30 to 50 setups, compare the outcomes by reason to see which of your filters actually help.
  • Run practice sessions at 2R and at 3R on the same timeframe to feel how the target size and the test window interact.
  • In a test you are scored against random picks from the same setups, so taking all of them earns nothing. Your score comes from the range crosses you leave out.

Evidence

Tested in published research. Profitable on the Dow 1897–1986 before costs (Brock, Lakonishok & LeBaron). The best rules did not hold up in the decade after that sample once data snooping was accounted for (Sullivan, Timmermann & White).