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
- Write your definition and a start date.
- Replay 10 fifteen-minute MES1! sessions and log every crossover with its ADX and DI readings and the filter's answer.
- Compare trade count, longest losing run and total points for both versions.
Quick check
1. Why log every cross, even the ones the filter blocks?
2. Which TradingView indicator shows the ADX with +DI and −DI?
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
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, How much time each candle covers, such as 1 minute or 1 hour.More in the glossary, a start date and 10 sessions; the entry strategy (9 and 21 A moving average that gives the newest closes more weight, so it reacts sooner than a simple one of the same length.More in the glossary cross, in at the close, out at the next cross); and the filter (An indicator from 0 to 100 that measures how strongly price has been moving in one direction, up or down. It doesn’t show which direction.More in the glossary 14 at or above 25, DI lines agreeing).
- Log every cross, with the ADX, which Two lines behind the ADX. +DI measures upward movement and −DI downward movement, each as a share of the average true range.More in the glossary 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. A chart feature that hides the candles after a point you choose, then shows them again one at a time, so you can practise on past prices without seeing ahead.More in the glossary 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 A row of losing trades one after another, with no win between them.More in the glossary and total One whole unit of a price. On the S&P 500, a move from 5,000 to 5,001 is one point, and each futures contract sets what a point is worth in dollars.More in the glossary, then check which big winners the filter blocked. A small How many trades a test is based on. A small sample can look very different from a larger one just by chance.More in the glossary; Level 4 covers proper comparisons.
Worked example
Made-up numbersReading the finished sheet
Made-up numbers · 10 sessions · MES1! · 15-minute
- No filter: 46 trades, longest losing run 9, −22.50 points
- Filtered: 15 trades, longest losing run 4, +3.75 points
- 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
Drill46 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.