Skip to content
Wildflower
Join free
The strategy library

Free Trading School · Level 3 · Course 3.2

Variations: moving average crossover

Lesson 14 of 179 in The strategy libraryModule 3: Moving average crossover

Strategies · The strategy library

Variations: moving average crossover

Wildflower Trading School · Lesson 3.2.3.3

Wildflower

The basic crossover has a well-known weakness: it crosses back and forth when the market goes sideways. Most variations are attempts to deal with that. By the end of this lesson, you'll know four common ones, how to write a slope filter in numbers, and how to count what a filter removes.

1 of 9

What you'll learn

  • Add a slope filter. Trade a cross only if the slow average has risen a set amount.
  • Wait for a close beyond both. Later entries, with fewer quick flips.
  • Use a third average. Take crosses only in the direction of the slowest line.
  • Try price and one average. It gives the most signals and the most whipsaws.
  • Count what a filter removes. Check whether it cut more losers than winners.

Exercise

  1. Pick one variation and write it as a rule with numbers.
  2. On 10 days of the 5m practice chart in Wildflower, count the crosses with and without it, and note which removed crosses would have won or lost.

Practise this on Wildflower's free practice chart. It needs a free account.

Join waitlist

Next: When it struggles.

Quick check

  1. 1. What does a slope filter check?

  2. 2. Which variation usually gives the most signals?

  3. 3. A filter cuts 50 crosses to 20. What should you check next?

0 of 3 answered.

Finished this lesson?

Tick it off and keep your place

Make a free account and we'll remember where you are, so “When it struggles” is waiting next time.

Read the full notes

Common crossover variations add a slope filter, wait for a close beyond both lines, use a third average for direction, or use price and one average; each changes how many signals you get, and only testing shows which it removes.

  • Four common variations on the : a slope filter; a close beyond both lines; three averages; and price crossing one average.
  • Slope filter: trade a cross up only if the slow average has risen by a set amount, for example 0.75 over 5 (5,001.60 to 5,002.63 is 1.03, so it passes). The numbers are examples; choose yours by testing. See Ways traders use moving averages.
  • Close beyond both: wait for a candle to close above both averages for a buy. Later entries, fewer quick flips.
  • Three averages (such as 9, 21 and 50): buy a 9-21 cross up only while both are above the 50. The slow line acts like a : see Top-down analysis step by step.
  • Price and one average: a close above it is a buy, a close below a sell. The earliest and most signals, and the most flips in sideways markets ().
  • Count what a filter removes, and check whether it removed more losers than winners, on the same dates. More: Market regimes.

Worked example

Made-up numbers

Write a slope filter in numbers

Made-up numbers · rule: the 21 EMA must have risen at least 0.75 points over 5 candles

  1. On the cross candle: 5,002.63
  2. Five candles earlier: 5,001.60
  3. Rise: 1.03 points

1.03 is at least 0.75, so the trade is allowed.

Your turn

Drill

Made-up numbers · 21 EMA now: 5,118.50 · five candles ago: 5,116.00

Trading is risky. You can lose money. This lesson explains how a strategy is built and tested. It isn't advice, and it doesn't say the strategy works.