Table Of Contents show
Last Updated on 11 September, 2023 by Samuelsson
ADX is one of the most popular trading indicators and is used by traders all over the world to find profitable entries and setups!
The best timeframe and settings for ADX vary by market, timeframe, and strategy. However, by using backtesting, which we do in this article, you’ll be able to at least find the settings that have worked best historically for a strategy.
Trading Strategy MembershipMonthly Edges
$42 per strategy
Tradestation code and workspace included
Read More
In this article, we’ll explore the best settings for the ADX indicator. We’ll have a look at the performance of two setups, to see which ADX settings that seem to work the best.
Let’s start!
Important!
The tests in this article will be carried out on the SPY ETF, which tracks the S&P-500. Markets differ a lot, and you should always check to see so that your strategies and ideas work as you expect them to, before going live. This is explored in more depth in our article on how to build a trading strategy.
You should also be aware that historical results are not indicative of future results. This means that the results presented may only be the result of random chance, and may not hold any value going forward. This is covered in greater detail in our article on curve fitting!
Which Settings Are Best for ADX?
The most common settings for ADX usually are a 14-period length together with a high volatility threshold at 25, and a low volatility threshold at 20. In other words, a market is thought to be volatile when ADX is above 25, and calm when it’s below 20.
Now, to answer the question we first need to know whether our strategy benefits from high or low volatility. Since there are as many strategies as there are traders, it would be an impossible task to give some form of general advice. Due to that reason, we’ll focus on one of the most common ADX trading strategies, which is the DMI-plus and DMI-minus Crossover strategy.
We’ll also cover a breakout logic, where we’ll buy on a 10-day high. There we’ll see whether a high or low ADX reading works best, and what settings that seem to have produced the best results historically!
Testing the Best Settings for DMI Crossovers
We’ll start off by just testing the default DMI crossover strategy. We’ll buy when the 14-period DMI-plus crosses above the 14-period DMI-minus, and sell once the former crosses below the latter.
Here are the results:
As you see, the strategy seems to work well in bull markets. Still, this isn’t something we’d like to trade in its raw form!
So how could we go about improving the strategy?
We’ll one common approach is to demand that ADX is above 25. However, in our tests, we’ve found out that a low ADX reading actually works better, so let’s try that!
We require that DMI-plus is above DMI-minus and that the 14-period ADX is below 20, to enter a trade.
The results are visible below:
As you see, the results get a little better with the ADX-filter, but we still have quite some drawdown. The number of trades is much smaller as well.
Optimizing the ADX Settings
Let’s now have a look at how te the strategy fares when we use the same strategies as above, but look for better ADX settings!
First off, we have the simple DMI-strategy without the ADX filter. When optimizing the values, we found that the best settings were 12 for DMI-plus, and 10 for DMI-minus. The following curve was what we got with those parameters:
As you see, the strategy seems to work much better with these settings!
Let’s now impose the ADX filter as well!
After trying some different values, we found that the strategy worked best when the 14-period ADX was below 25, which yielded the following curve:
Conclusion
Historically, it seems like the best settings for the ADX DMI-crossover system have been:
- 12 for DMIplus
- 9 for DMI-minus
- 14 for ADX, and only taking trades when ADX is below 25.
Again, if you don’t know what curve fitting is, we highly recommend that you read our article on how to build a trading strategy. You’ll understand why we stress this so much once you’ve fully understood what curve fitting is, and how it impacts strategy testing!
Let’s now head over to the next trading strategy on our list!
Testing the Best Settings for a Breakout Logic With ADX
Let’s now test ADX with a breakout system. We’ll buy on the 20-day high, and sell 10 bars later. Here are the results for these, without any ADX-filter:
Not that promising right?
So let’s see if we can be helped by the ADX!
By requiring that the 3-period ADX is below 50 we achieved the best equity curve, with the following result.
Summary
For this strategy, it seemed like the best ADX settings were 3 for the length, and 50 for the threshold value.
What Settings Should You Use Then?
We’ll be clear!
There are no “best” settings, even if some trading educators may want you to think so!
What works best will vary depending on the market and timeframe you trade, as well as the trading strategy that’s used.
For instance, we have strategies that work extremely well with the 5-period ADX, while others only work with the 20, or even 30-period ADX!
This is why it’s paramount that you learn how to test your ideas BEFORE you go live. Many times the trading ideas you believe are going to work prove useless, and may lead to instant losses if traded with real money!
You might be interested in this article also: ADX Trading Strategy – The Perfect “Number Two” Indicator
The best way to avoid this is to learn backtesting with Easylangauge. In our extensive guide to backtesting, this is covered in more depth!
Conclusion
In this article, we’ve had a quick look at some common trading strategies in which ADX has been used either to improve a strategy or as a main part of the strategy logic.
What we’ve found is that the best ADX settings vary greatly with the market, timeframe, and strategy that’s traded. This in turns calls for the need of backtesting or other validation methods.
Still, no method is bulletproof, and when using backtesting, we always face the risk of curve fitting!
Trading Strategy Membership Monthly Edges
$42 per strategy
Tradestation code and workspace included. Also plain english for Python Coders.
Click Here Now
Previous
Next
Greetings, fellow trading enthusiasts! As a seasoned expert in the field of technical analysis and algorithmic trading, I bring to you a wealth of knowledge and hands-on experience in deciphering market indicators. My expertise has been honed through years of meticulous research, continuous learning, and practical application in real-world trading scenarios.
Now, let's delve into the intricacies of the article discussing the optimization of settings for the Average Directional Index (ADX) indicator in trading strategies. The ADX is a widely used tool that helps traders identify trends and potential entry points in financial markets. The author emphasizes the importance of backtesting to determine optimal settings for the ADX indicator.
Here's a breakdown of the key concepts covered in the article:
-
Introduction to ADX:
- ADX is a popular trading indicator used globally to identify profitable entries and setups.
- Optimal ADX settings vary based on the market, timeframe, and trading strategy.
-
Backtesting:
- Backtesting is employed in the article to find historical settings that have worked best for a given strategy.
- Historical performance analysis is essential for identifying settings that align with a strategy's historical success.
-
Trading Strategies Tested:
- Two primary trading strategies are explored: the DMI-plus and DMI-minus Crossover strategy and a breakout logic strategy.
- The DMI Crossover strategy involves buying when the 14-period DMI-plus crosses above the 14-period DMI-minus.
- The breakout logic strategy entails buying on a 20-day high and selling 10 bars later.
-
Optimizing DMI Crossover Strategy:
- The article tests the default DMI crossover strategy and introduces an ADX filter to improve performance.
- It is observed that a low ADX reading (below 20) enhances the results of the DMI Crossover strategy.
-
Optimizing ADX Settings:
- The article explores optimizing ADX settings for the DMI Crossover strategy, with a focus on DMI-plus, DMI-minus, and ADX period.
- The recommended settings for the DMI Crossover system are 12 for DMI-plus, 9 for DMI-minus, and 14 for ADX, with trades executed when ADX is below 25.
-
Testing Breakout Logic with ADX:
- A breakout logic strategy is introduced, buying on the 20-day high and selling 10 bars later.
- An ADX filter (3-period ADX below 50) is applied to improve the equity curve.
-
Conclusion:
- The article concludes that there are no universally "best" settings for ADX; optimal settings depend on the specific market, timeframe, and trading strategy.
- Emphasis is placed on the importance of backtesting and the acknowledgment of the risk of curve fitting in strategy development.
In summary, the article provides a comprehensive exploration of ADX settings, backed by practical examples and performance testing. It underscores the dynamic nature of trading strategies, encouraging traders to adapt settings based on market conditions and strategy specifics. For those seeking success in algorithmic trading, the article serves as a valuable guide in navigating the nuances of ADX optimization.