Skip to content
Wildflower
Join free
The strategy library

Free Trading School · Level 3 · Course 3.2

Build a trend filter with ADX or the cloud

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

The strategy library · Do it in Wildflower

Build a trend filter with ADX or the cloud

Wildflower Trading School · Lesson 3.2.29.5 · 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 trend filter card filled in, and your own filtered strategy saved in Wildflower.

1 of 13

What you'll learn

  • Describe your signal and its filter in words from Strategies, then New strategy.
  • Read the filter back on Check my rules, to see ADX, its length and its level.
  • Try three ADX levels on the Filter step with Help me choose, then Try a few.
  • A higher level lets fewer trades through, not always better ones.
  • 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 signal and its trend filter in your own words, such as only when the 14 ADX is above a level, with your stop, target, risk and hours. Answer every question, then press Check my rules.
  4. Read the filter back, and fill in lines 1, 2 and 4.
  5. Open your strategy in Strategies and press Change a rule. Press the Filter step and click into Level it is compared with.
  6. Press Help me choose, type three levels 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. On the Filter step press ⋯, then Remove, so the plain entry has no filter. 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.

Quick check

  1. 1. Where is the box Sam tests in this lesson?

  2. 2. Sam raised the ADX level from 20 to 30. What happened?

  3. 3. ADX above 20 made $1,260 before fees on 23 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 channel or band breakout” is waiting next time.

Read the full notes

A trend filter lets a signal trade only when the market is trending. ADX measures how strong a trend is, whichever way. In Wildflower, open Strategies, press New strategy and describe your signal with the filter in your own words, such as only when the 14 ADX is above 25. Wildflower adds it as a Filter step, Indicator condition. Press Check my rules, then Change a rule, open the Filter step, click into Level it is compared with and try three levels with Try a few on the free practice chart. The Ichimoku cloud is another trend filter, set up the same way.

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 trend filter on a crossover. Last lesson built the crossover alone; next lesson builds a channel breakout.

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. With ADX above 20, his crossover made $1,260 before fees on 23 trades. Above 30, it lost $92 on 8. How the filter works: Choosing an ADX level and Common ADX trend filter rules.

The Strategies page with New strategy circled
Open Strategies and press New strategy.
Sam's words: the 20 EMA crossing the 50 EMA, only when the 14 ADX is above 25
Example screen. Made-up numbers.Type your signal and its filter 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: The Indicator condition filter is on; Which indicator: ADX, with +DI and -DI; Minutes per candle: 5; Length: 14; Candles it is smoothed over 14; Which of its lines: The ADX line; What must be true of it: Its value above the stated level; Level it is compared with: 25
Example screen. Made-up numbers.The filter, read back line by line.
Sam's gold crossover with ADX, Version 1, with Change a rule circled
Open your strategy and press Change a rule.
The Filter step's Level it is compared with box, set to 25
Example screen. Made-up numbers.Press the Filter step, then click into Level it is compared with.
Try a few with 20, 25 and 30: 23, 14 and 8 trades, profit before fees $1,260, $352 and −$92
Example screen. Made-up numbers.Press Help me choose, type three levels 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 entry7231 (43.1%)+$2,180+$1,628.48−$1,364
ADX above 202311 (47.8%)+$1,260+$1,083.82−$504
ADX above 25146 (42.9%)+$352+$244.76−$628
ADX above 3083 (37.5%)−$92−$153.28−$628

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, with no filter, same stop, target, risk and hours. Each strategy's made-up prices are its own, so this plain entry differs from last lesson's. Here no filter level beat it.

How traders set a trend filter. We can't tell you which to choose. These are the common choices. ADX above 20 or 25, a trend of any strength. ADX above 30 or 40, only strong trends. Or the Ichimoku cloud: buy only above the cloud, sell only below it, as another Indicator condition.

Worked example

Made-up numbers

Sam's trend filter 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: the 20 EMA crossing the 50 EMA, only when the 14 ADX on 5-minute candles is above a level.
  2. Line 3: Level it is compared with, tried at 20, 25 and 30.
  3. Line 6: at 20, 23 trades and 11 won. $1,260 before fees, minus about $8 × 23 = $176 in fees, is $1,084 after.

Line 7 is Sam's own pick. He writes that no level beat the plain entry on these prices, so the filter isn't earning its place yet. Made-up prices, an example, not advice.

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