Skip to content
Wildflower
Join free
The strategy library

Free Trading School · Level 3 · Course 3.2

Test it yourself: ADX trend filter

Lesson 130 of 179 in The strategy libraryModule 24: ADX trend filter

Strategies · The strategy library

Test it yourself: ADX trend filter

Wildflower Trading School · Lesson 3.2.24.5

Wildflower

This is the hands-on lesson for the ADX filter. You'll take one trend strategy, the moving average crossover, and log every trade it takes on a replayed chart, with the ADX and DI readings at each one. Then you'll split the sheet into two versions, with and without the filter, and compare the trade count, the longest losing run and the result. TradingView is the example, and the screens are simple drawings, so yours will look a bit different. Other platforms have similar tools.

1 of 10

What you'll learn

  • Write the test first. The entry strategy, the filter and 10 sessions.
  • Add the right indicator. Use Directional Movement Index so you see the DI lines.
  • Log every cross. Note the ADX, the top DI line and the filter's answer.
  • Compare both versions. Trade count, longest losing run and total points.
  • Check blocked winners. See which big winners the filter kept you out of.

Exercise

  1. Write your definition and a start date.
  2. Replay 10 fifteen-minute MES1! sessions and log every crossover with its ADX and DI readings and the filter's answer.
  3. Compare trade count, longest losing run and total points for both versions.

Quick check

  1. 1. Why log every cross, even the ones the filter blocks?

  2. 2. Which TradingView indicator shows the ADX with +DI and −DI?

  3. 3. The filtered version had a shorter losing run. What else should you check?

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 “The Holy Grail pullback” is waiting next time.

Read the full notes

To test the ADX filter yourself, replay one trend strategy, log every trade with its ADX and DI readings and whether the filter allows it, then compare the versions with and without the filter: trade count, longest losing run and result.

  • Write it first: market, , a start date and 10 sessions; the entry strategy (9 and 21 cross, in at the close, out at the next cross); and the filter ( 14 at or above 25, DI lines agreeing).
  • Log every cross, with the ADX, which is on top, and the filter's answer. One sheet then gives both versions on the same candles.
  • On TradingView: click Replay, then Select bar and Select date in the replay bar, pick a start date, add Directional Movement Index from Indicators (not Average Directional Index, which has no DI lines), and click Forward one candle at a time. on each timeframe depends on your plan; other platforms have similar tools.
  • This test leaves out a protective stop to keep the sums simple. A full sheet would add one.
  • Compare trade count, longest and total , then check which big winners the filter blocked. A small ; Level 4 covers proper comparisons.

Worked example

Made-up numbers

Reading the finished sheet

Made-up numbers · 10 sessions · MES1! · 15-minute

  1. No filter: 46 trades, longest losing run 9, −22.50 points
  2. Filtered: 15 trades, longest losing run 4, +3.75 points
  3. The filter blocked 3 of the 5 biggest winners, all at the start of a trend

Fewer trades and shorter losing runs, at the cost of the trends' early moves. Too few trades to trust either way.

Your turn

Drill

46 crosses logged · the filter allowed 15

Read more

Test it yourself: moving average crossover, and the trading guides ADX indicator, Losing runs, Forward testing and replay and Backtest sample size.

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.