Moving Average Crossover
A trend-following strategy: buy when a faster moving average crosses above a slower one, and exit when it crosses back below. Simple rules, but it struggles in sideways markets.
The idea
A moving average (MA) is the average closing price over the last X candles, drawn as a line on the chart. A short MA (for example 20 days) reacts quickly; a long MA (for example 50 days) reacts slowly.
When the fast MA crosses above the slow MA, recent prices are rising faster than the longer trend: a possible start of an uptrend. When it crosses below, a possible downtrend.
When it works best
- Strong, long trends
- Markets with clear directional moves
When it fails
- Sideways (ranging) markets: the lines cross back and forth and create many small losses, called "whipsaws"
- Sudden news moves: moving averages are slow to react
Entry rules (long example)
- Use the daily chart with a 20-period and a 50-period moving average.
- Wait for the 20 MA to close above the 50 MA.
- Optional filter: price is also above the 200 MA (the long-term trend is up).
- Enter at the open of the next candle.
Stop loss
Below the most recent swing low before the crossover, or a fixed distance you have tested. Calculate your position size so this stop equals your maximum risk (for example 1% of your account).
Exit / take profit
- Exit when the 20 MA crosses back below the 50 MA, or
- Take partial profit at 2× your risk and let the rest run until the cross-back
Example (fictional)
Sunny Bikes is at $20. The 20 MA crosses above the 50 MA. Slav buys at $20.20, with a stop at the recent swing low of $18.80 (risk $1.40 per share). Weeks later the trend continues and the 20 MA crosses back below the 50 MA at $24.10. He exits: +$3.90 per share, about 2.8 times his risk. The next two signals are whipsaws that lose about 1× risk each. This is normal for trend-following: several small losses, occasional big wins.
Pros
- Clear, objective rules: easy to test
- Catches large trends
- Works on many markets
Cons
- Late entries and late exits (MAs lag)
- Many false signals in sideways markets
- Long losing streaks are possible
Common mistakes
- Changing the MA settings after every loss
- Trading every cross, even in a flat, choppy market
- Moving the stop loss further away "just this once"
Checklist before the trade
- The cross happened on a closed candle
- The market is trending, not flat
- Stop loss is placed and position size calculated
- I accept this trade could be one of the whipsaws