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
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?
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
- Moving averages: simple and exponential (opens in a new tab), StockCharts ChartSchool
- Moving average trading strategies (opens in a new tab), StockCharts ChartSchool
- Trading using the golden cross (opens in a new tab), StockCharts ChartSchool
- Moving average stock signal (opens in a new tab), Fidelity Viewpoints
- Moving averages and trend trading (opens in a new tab), IG Academy
- Simple technical trading rules and the stochastic properties of stock returns (Journal of Finance, 1992) (opens in a new tab), Brock, Lakonishok and LeBaron
- Data-snooping, technical trading rule performance, and the bootstrap (Journal of Finance, 1999) (opens in a new tab), Sullivan, Timmermann and White
- What do we know about the profitability of technical analysis? (Journal of Economic Surveys, 2007) (opens in a new tab), Park and Irwin
- Controlling risk (opens in a new tab), IG Academy
- Forex risk management (opens in a new tab), CMC Markets
- Pseudo-mathematics and financial charlatanism (Notices of the AMS, 2014) (opens in a new tab), Bailey, Borwein, López de Prado and Zhu
- What is backtesting? (opens in a new tab), IG