Skip to content
Wildflower
Join free
The strategy library

Free Trading School · Level 3 · Course 3.2

Build a moving average crossover or pullback

Lesson 157 of 179 in The strategy libraryModule 29: Do it in Wildflower

The strategy library · Do it in Wildflower

Build a moving average crossover or pullback

Wildflower Trading School · Lesson 3.2.29.4 · This exercise is free

Wildflower

Same goal as every lesson in this set: a setup card for every setup you trade: described in your own words in Wildflower, every number yours, one box tried three ways on the practice chart, and compared with a plain entry. By the end of today, you'll have Sam's crossover card filled in, and your own crossover saved in Wildflower.

1 of 13

What you'll learn

  • Describe your crossover in words from Strategies, then New strategy.
  • Read the averages back on Check my rules, to see the 20 EMA crossing the 50 EMA.
  • Try three longer averages with Help me choose, then Try a few.
  • A longer average crosses less often, so it trades less.
  • Compare with a plain 10:00 entry on the same days, after fees.

Exercise

This exercise is free.

  1. Start a new setup card: copy the seven lines above onto paper or into a note.
  2. Open Strategies and press New strategy.
  3. Describe your crossover in your own words: which averages and how many candles each, your stop, target, risk and hours. Answer every question, then press Check my rules.
  4. Read the averages back, and fill in lines 1, 2 and 4.
  5. Open your strategy in Strategies and press Change a rule. Press the Signal step and click into Candles in the longer average.
  6. Press Help me choose, type three lengths under Try a few, and press Run.
  7. Make the plain entry. On your strategy press Change a rule. On the Signal step press ⋯, then Change, and pick Signal at a clock time. Type 600 in Time of the signal, pick The way that candle closed, and press Save. Run it in Backtest on the Practice chart, and that's your line 5.
  8. Fill in lines 6 and 7. Take about $8 a trade off Try a few's profit for fees, and write the trade count beside it.

Quick check

  1. 1. Sam made the longer average 200 candles instead of 50. Why did he get fewer trades?

  2. 2. On the same days, what did the plain 10:00 entry do after fees?

  3. 3. The 200 run made $1,708 before fees on 10 trades. About what is that after fees?

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 “Build a trend filter with ADX or the cloud” is waiting next time.

Read the full notes

A moving average crossover buys when a shorter average crosses above a longer one and sells when it crosses below. In Wildflower, open Strategies, press New strategy and describe it in your own words: which averages, their lengths, and your stop, target, risk and hours. Wildflower builds it as Moving average crossover. Press Check my rules, then Change a rule, open the Signal step, click into Candles in the longer average and try three lengths with Try a few on the free practice chart. A pullback to an average is its own block, Price touching or bouncing off a moving average.

What you're building. These lessons share one goal: a setup card for every setup you trade: described in your own words in Wildflower, every number yours, one box tried three ways on the practice chart, and compared with a plain entry. Today you start a new card for a moving average crossover. Last lesson traded yesterday's levels; next lesson adds a trend filter to this same crossover.

Copy these seven lines onto paper or into any note. Today you fill in lines 1, 3 and 6 are new; the others work as before.
My setup card
1. The setup: … (what price must do, and where)
2. Its clock or its levels: …
3. The box I test: …, tried at …, … and …
4. Stop … ticks, target … times the stop, $… a trade, … to … New York
5. A plain entry at 10:00 each day, same stop and target: … trades, $… after fees
6. What the test showed: … trades, … won, $… after fees
7. My pick, and why: …

Why. Sam is made up, and so are his numbers. They're real runs of Wildflower's engine on the free practice chart's made-up prices. The 20 EMA crossing the 50 EMA gave 21 trades and lost $140 before fees. Crossing the 200 gave 10 trades and made $1,708. How a crossover works: Test it yourself: moving average crossover.

The Strategies page with New strategy circled
Open Strategies and press New strategy.
Sam's words: buy when the 20 EMA crosses above the 50 EMA, sell when it crosses below
Example screen. Made-up numbers.Type your setup in your own words. Describing a new strategy is free three times a month without a paid plan. Change a rule never counts.
Check my rules: Enter when the 20 EMA crosses the 50 EMA
Example screen. Made-up numbers.The crossover, read back as one line.
Sam's gold EMA crossover, Version 1, with Change a rule circled
Open your strategy and press Change a rule.
The Signal step's Candles in the longer average box, set to 50
Example screen. Made-up numbers.Press the Signal step, then click into Candles in the longer average.
Try a few with 50, 100 and 200: 21, 17 and 10 trades, profit before fees −$140, $48 and $1,708
Example screen. Made-up numbers.Press Help me choose, type three lengths under Try a few and press Run. Nothing is saved.
Sam's runs on the practice chart, made-up prices. Practice prices trend more than real gold, so these numbers show how it works, not how gold behaves.
RunTradesWonBefore feesAfter feesLargest drop
Plain 10:00 entry7226 (36.1%)+$396−$155.52−$2,264
Longer average 50217 (33.3%)−$140−$300.86−$1,028
Longer average 100176 (35.3%)+$48−$82.22−$692
Longer average 200107 (70.0%)+$1,708+$1,631.40−$336

The plain entry. The first row is the same strategy with its signal changed to Signal at a clock time: 10:00 New York each day, the way that 5-minute candle closed, same stop, target, risk and hours. It made money before fees and lost it after, which is what fees do to a setup that trades every day.

How traders set a crossover. We can't tell you which to choose. These are the common choices. A fast pair, like 9 and 21, crosses often. A slow pair, like 50 and 200, the golden cross and the death cross, crosses rarely. Or a pullback to one average instead of a cross, built with Price touching or bouncing off a moving average.

Worked example

Made-up numbers

Sam's crossover card

Sam is made up. $20,000 account, micro gold at $1 a tick for each contract, $200 a trade with a 40-tick stop, 4 contracts.

  1. Line 1: buy when the 20 EMA crosses above the longer EMA, sell when it crosses below.
  2. Line 3: Candles in the longer average, tried at 50, 100 and 200.
  3. Line 6: at 200, 10 trades and 7 won. $1,708 before fees, minus about $8 × 10 = $77 in fees, is $1,631 after.

Line 7 is Sam's own pick. He writes 200 down with its trade count, and plans to test it on more days. Made-up prices, an example, not advice.

Trading is risky. You can lose money. This lesson shows how Wildflower works. It isn't advice.