What Are the Best Settings for ADX in a trading strategy? (Length, Levels, and Timeframes) (2024)

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.

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:

What Are the Best Settings for ADX in a trading strategy? (Length, Levels, and Timeframes) (2)

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:

What Are the Best Settings for ADX in a trading strategy? (Length, Levels, and Timeframes) (3)

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:

What Are the Best Settings for ADX in a trading strategy? (Length, Levels, and Timeframes) (4)

Conclusion

Historically, it seems like the best settings for the ADX DMI-crossover system have been:

  1. 12 for DMIplus
  2. 9 for DMI-minus
  3. 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:

What Are the Best Settings for ADX in a trading strategy? (Length, Levels, and Timeframes) (5)

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.

What Are the Best Settings for ADX in a trading strategy? (Length, Levels, and Timeframes) (6)

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

What Are the Best Settings for ADX in a trading strategy? (Length, Levels, and Timeframes) (7)

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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

What Are the Best Settings for ADX in a trading strategy? (Length, Levels, and Timeframes) (2024)

FAQs

What Are the Best Settings for ADX in a trading strategy? (Length, Levels, and Timeframes)? ›

The average directional movement index

average directional movement index
An indicator that helps in determining the direction the asset price is moving and the strength of the price movement.
https://corporatefinanceinstitute.com › resources › equities › di...
is calculated to reflect the expansion, or contraction, of the price range of a security over a period of time. The traditional setting for the ADX indicator is 14 time periods, but analysts have commonly used the ADX with settings as low as 7 or as high as 30.

What is the time frame for ADX? ›

ADX calculations are based on a moving average of price range expansion over a given period of time. The default setting is 14 bars, although other time periods can be used. ADX can be used with any financial security that trades, including stocks, mutual funds, exchange-traded funds, and futures.

What is the length and threshold for ADX? ›

Traders often set the ADX period to the default of 14 days for moving average during backtesting to evaluate the strength of trends. In backtesting, a bullish ADX pattern can be identified when the ADX line crosses above a certain threshold, such as 20, suggesting the start of a trend.

What is ADX smoothing and di length? ›

The smoothed moving average is calculated over the number of periods selected, and the average true range is a smoothed average of the true ranges. Then: ADX = 100 times the smoothed moving average of the absolute value of (+DI − -DI) divided by (+DI + -DI)

What is the best timeframe to use ADX? ›

The traditional setting for the ADX indicator is 14 time periods, but analysts have commonly used the ADX with settings as low as 7 or as high as 30. Lower settings will make the average directional index respond more quickly to price movement but tend to generate more false signals.

What is the secret of ADX? ›

This indicator calculates the moving average of the expanding price range over a certain period, usually 14 days. ADX has a value that fluctuates from 0 to 100, with limits generally between 20 and 50. The ADX value below 20 indicates a relatively weak trend, while values ?? above 50 indicate a very strong trend.

What are the best settings for the true strength indicator? ›

If the stock's beta is above 1, use a higher True Strength Index range like +70 and -70. On the other hand, if the stock's beta is below or around 1, you can probably stick to a +50 and -50 range. You can easily change the levels you want to see on your chart in Tradingsim using the true strength indicator settings.

What is the 2 period ADX strategy? ›

In the 2-period ADX Trend Trading Strategy, we are using a 2-period ADX to catch low risk entries in a trending market. The concept underlying the 2-period ADX is to find the perfect pause in the market. By using such a short look-back period for the ADX indicator, it becomes extremely sensitive.

What is the rule of ADX indicator? ›

The ADX Indicator is a tool in technical analysis used to measure the strength of trends. ADX readings below 25 suggest weak or absent trends, while values above 25 indicate strong trends.

How much ADX is good? ›

The ADX identifies a strong trend when the ADX is over 25 and a weak trend when the ADX is below 20. Crossovers of the -DI and +DI lines can be used to generate trade signals. For example, if the +DI line crosses above the -DI line and the ADX is above 20, or ideally above 25, then that is a potential signal to buy.

What is the best indicator for sideways market? ›

Best Indicator For Sideways Market include Bollinger Bands for volatility, MACD for trend changes, RSI for overbought/oversold conditions, and Stochastic Oscillator for price placement in range. Bollinger Bands: Helps in identifying the volatility and possible price levels.

Which indicator is best for trading? ›

Popular technical indicators include simple moving averages (SMAs), exponential moving averages (EMAs), bollinger bands, stochastics, and on-balance volume (OBV). Technical indicators provide insight into support and resistance levels which may be key in devising a low risk-reward ratio strategy.

What is the best combination with ADX indicator? ›

The ADX Indicator actually works best when combined with other technical indicators. One of the best combinations is with the Relative Strength Index, or RSI. Because the ADX measures the intensity of the trend the RSI can help with entries and exits by giving a time based component to the trend.

What is the default setting for ADX? ›

The default setting for ADX is 14 bar but can be adjusted for other time periods also. ADX is non-directional, and together, the DIs and ADX measure both direction and strength of a trend.

What is the multi time frame ADX? ›

ADX is a lagging trend indicator designed by J Welles Wilder and indicates the strength of a trend, or when a stock is in a strong uptrend or downtrend, or whether it's moving sideways. However, the ADX does not indicate if the trend as bullish or bearish.

What is the most accurate indicator for day trading? ›

Seven of the best indicators for day trading are:
  • On-balance volume (OBV)
  • Accumulation/distribution (A/D) line.
  • Average directional index.
  • Aroon oscillator.
  • Moving average convergence divergence (MACD)
  • Relative strength index (RSI)
  • Stochastic oscillator.

What is the best moving average indicator for day trading? ›

Exponential Moving Average (EMA):

For intraday trading, traders may prefer to use the Exponential Moving Average (EMA) as it lags less than the SMA and is more responsive to recent price action over shorter periods of time.

Top Articles
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 5372

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.