ADX Trading Strategy

ADX Trading Strategy (Average Directional Movement Index Indicator) – Statistics, Facts And Historical Backtests!

Is it possible to use the ADX indicator (Average Directional Movement Index) (DMI) to find a profitable ADX trading strategy? This article looks at the ADX indicator where we make some historical backtest to evaluate and analyze. The adx indicator was developed by Welles Wilder and released in his book in 1978 called New Concepts In Technical Trading Systems. Mr. Wilder was productive, and in the same book, he published perhaps the most used indicator of them all, the relative strength index (RSI), in addition to the average true range (ATR), and parabolic SAR. The book was written before the personal computer came about, but all the indicators are widely used to this very day.

There are many ways to use the ADX in trading strategies. Our research and backtests indicate the ADX indicator is somewhat useful on its own but adds great value used alongside other indicators when you build trading strategies. In this article, we look at how the Average Directional Movement performs alongside other indicators, and we test some ADX trading strategies.

If you find this article useful, you might want to have a look at our landing pages for a lot of other trading strategies and edges:

What is the ADX indicator?

The ADX indicator measure the underlying trend of the instrument. Unfortunately, Wilder’s book is out of print, but we are unsure if Wilder made the indicator a stand-alone indicator or used it together with other indicators. As you will see later in the article, we prefer to use it as a supplement to other indicators.

Mr. Wilder aimed to make a formula that measures the trend and the strength of the trend. He came up with the ADX indicator, an abbreviation for Average Directional Movement Index but is known as the ADX indicator.

We must keep in mind that Wilder was a commodity trader, and the indicator was meant for swing trading in commodity futures, but it seems to work in more or less any instrument.

The ADX indicator involves many mathematical calculations and is, of course, very cumbersome to do by hand. Luckily we have computers, and most trading platforms have ADX as a standard indicator, which you can drop on the chart.

The indicator consists of three components:

The Plus and Minus Direction Indicators are referred to as the Directional Movement Indicators (DM). Please be aware that the indicator doesn’t indicate the direction of the trend, only the trend’s strength.

When the DI+ is rising, it means the uptrend gains momentum, and vice versa for the DI-. The DM is the absolute difference between the two readings and thus doesn’t say anything about the trend’s direction.

What does the ADX measure?

Trend-Confirmation Strategy Using ADX

The ADX measures the direction of the trend and the trend’s strength (or the lack of a trend).

A high reading indicates a trending market, and a low reading indicates a non-trending market. The ADX was thus originally made as a trend indicator.

As with all indicators, it’s a lagging indicator. This means an uptrend or downtrend is confirmed when it’s already established. The ADX operates in a range from 0 to 100.

The shorter the time frame, the more volatile the ADX. If you use time frames longer than ten days, you will notice the ADX rarely goes above 50, more or less in any market. What does this mean? Most markets are not trending.

How is the ADX calculated?

We will not dig deeper into the calculations because of all the calculations involved, and we recommend you Google the term.

What are the best settings for the ADX indicator?

Lets’s first start with a visual view of the ADX indicator:

adx dmi trading strategy
The 15-day ADX indicator and how it works. ADX is the blue line

When the red line (DI-) is above the green line (DI+), the trend is bearish (down). Opposite, when the green line (DI+) is above the red line (DI-) we can say the indications point toward a bullish trend.

As we can see, the bigger the difference between the DMs, the higher the readings on the ADX (the blue line). However, notice that the ADX starts turning down after the DMs have started contracting. Obviously, it’s a lagging indicator as it’s just a derivative of the price action in the chart.

The chart above is the ETF SPY, which tracks the S&P 500. Notice how the ADX rises during the Covid-19 debacle in March 2020. It reaches its climax on the bottom and then gradually goes down as SPY retreats from the lows. If you were a trend trader, you would be taken to the cleaners. The market is trending….until it’s not trending anymore.

The chart above shows a 15-day ADX. The ADX is rarely above 50, and thus we can conclude that the S&P 500 doesn’t trend much. If we use a 50-day ADX, the highest reading since 1993 is just under 30.

What about Gold? As a commodity, it should trend more? Since the year 2000, gold has never seen a reading above 25 for a 50-day ADX. To see readings above 80, we need to go down to a 5-day ADX.

Mr. Wilder established readings under 15 as non-trending and above 20 as trending.

Is the ADX a good indicator?

Yes the ADX is a good indicator. How do we know? We have tested the indicator in hundreds of different scenarios. It doesn’t work all the time but it is a good indicator that works more often than other indicators.

Does the ADX indicator work? Let’s backtest ADX with some trading strategies.

As always, make sure you don’t base your decisions on anything you read on the internet or in a trading book unless it’s backtested.

Obviously, you can build and backtest an ADX trading strategy in a zillion ways. Only your own imagination limits the possibilities.

Let’s test some possible strategies based ONLY on the ADX formula:

DI+ and DI- crossover strategy

Let’s start with a crossover strategy based on the positive and negative directional indicators:

ADX Trading Rules


The code in Amibroker for this adx dmi trading strategy reads like this for a ten-day ADX:

Buy= Cross(PDI(10),MDI(10)) ; //PDI is the DM+ and MDI is the DI-
Sell= Cross(MDI(10),PDI(10));
sellPrice=Close ;

The equity curve ends up like this on the S&P 500 (no commissions and slippage):

ADX Indicator Backtest
Directional crossover system on the S&P 500.

The average trade is 0.42% and the CAGR is 5.4% and the strategy is invested 55% of the time. The profit factor is 1.71.

Does the ADX strategy improve by using other time frames? No, it turns out that 10 days is one of the best time frames for the S&P 500.

How does the crossover perform on futures and other ETFs? To our surprise, it works the best on the S&P 500. Even on commodities, we fail to produce better numbers than in the S&P 500.

ADX breakout trading strategy

Let’s test an ADX breakout trading strategy of the ADX readings:

  • ADX ends the day at an n-bar high
  • DI+ is higher than DI-
  • We sell when the DI+ ends below DI-

In other words, we optimize to find the best numbers.

The optimization indicates the best results on the S&P 500 is 35 days for the DMs (DI) and 15 days for the ADX high/breakout. In general, high numbers on both optimizations give the best results.

If you want the Amibroker code for the above optimization, please have a look at this link:

The equity curve looks like this for 35 and 15 days on the S&P 500:

ADX trend indicator strategy
ADX sets a new x-day high while the DM+ is above DI-.

The drawdown is small, 13.76%, compared to 55% for the buy and hold, but overall the CAGR is only 3.03% compared to 9.9% for buy and hold. Compounded the difference is enormous, of course.

Is it any better in other markets? No, the strategy performs best on the S&P 500 (again).

Which indicator works best with ADX?

Based on the two simple tests above it seems the ADX doesn’t do us much help on a stand-alone basis. We need more than a simple ADX strategy. The results are good, but not nearly good enough to be used on its own.

Can the ADX be of any use combined with other variables or indicators? Is it possible to use the ADX as a filter to enhance an existing trading strategy by removing a lot of unwanted and losing trades?

Perhaps surprisingly, the ADX improves many trading strategies. We write surprisingly because very few indicators really work.

Let’s test the following strategy (we write “unknown” because we don’t want to reveal the strategy):

Buy= ADX + “unknown indicator” ;
Sell= “Unknown”;
sellPrice=Close ;

The equity chart below was made with one mean-revertive indicator (not the ADX) used on the S&P 500 (SPY):

ADX indicator trading rules

The CAGR is 9% with an exposure in the market of 24%. The profit factor is 2.15.

The result is good, but the long time frame hides a pretty erratic curve. Can we improve the strategy?

Let’s add an ADX filter to the indicator above.

What are we looking for? Are we looking for a high ADX reading or a low one? If we look at the first graph of this article, we observe that the ADX seems to oscillate up and down. This means trends are hard to find. Thus, we add the criteria that ADX for n-days must be higher than x. We sell when today’s close is higher than yesterday’s high.

This is the code in Amibroker (we write “unknown” because we don’t want to reveal the strategy):

Buy= “Unknown indicator” AND ADX(ADXdays)>ADXlimit;
Sell= “Unknown”;
sellPrice=Close ;

This is an optimization, and the results indicate that the best results are by using a short number of days (5-10 days) and values around 30-40 for the ADX limit.

This results in an equity curve like this in the S&P 500 (SPY):

ADX trend strategy backtest

The CAGR is 7.3% while the time spent in the market drops to 7%. However, the profit factor increases to 2.6%.

This last strategy works even better on Nasdaq (QQQ):

The CAGR is 12.5% while the time spent in the market is 8%.

Overall profits decrease due to fewer trades and subsequently less time spent in the market. But the average gain per trade goes up from 0.54% to 0.73% and the maximum drawdown decreases a little.

Is our ADX strategy tradeable? That’s something we will let the reader decide!

If you want to have the code for the strategy (including Amibroker and Tradestation code plus “plain English”), you can order it via this link (ADX + second indicator Strategy no. 5):


When you have paid, please press the link below to access the code (PDF file):

Download ADX + second indicator strategy no.5 by clicking here (you need to pay for access)

Alternatively, you can subscribe to our monthly Trading Edges where we send out ideas like this monthly for a lower fee per edge. The edge above will be presented as an edge in a few months. If you’d like to receive similar ideas, please subscribe to our Trading Edges:

Amibroker and ADX

All testing in this article is done by using Amibroker:

Can the strategy be improved?

We are not oracles, and we are pretty sure there are traders out there who can improve the strategy. Do you have any ideas on how to improve it?

If so, please comment below or drop us an e-mail.

Conclusion: Does the ADX indicator work? What did the backtest say?

The ADX indicator performs reasonably well on its own but much better when used with another indicator.

In this article, we have explored just a tiny fraction of the possibilities with the ADX indicator. It’s a versatile indicator, and as shown in this article, could also be used as a mean-reverting tool, not as a trend-tool as it was originally made to be.

As always, we recommend you do proper backtesting yourself to find profitable ADX strategies.

ADX Indicator Strategy Glossary

The ADX indicator is one of the most underappreciated trading indicators, so don’t let you be intimidated by words and phrases in the article. To help you out we made a glossary of the most important terms:

  1. ADX (Average Directional Index): A technical indicator that measures the strength of a trend in a financial instrument.
  2. Backtest: The process of testing a trading strategy on historical data to evaluate its performance.
  3. Settings: Parameters and configurations used to customize the ADX indicator for specific trading strategies.
  4. Period: The number of data points used in ADX calculations, affecting the indicator’s sensitivity.
  5. DI+ (Directional Indicator Positive): Part of the ADX indicator that measures the strength of positive price movement.
  6. DI- (Directional Indicator Negative): Part of the ADX indicator that measures the strength of negative price movement.
  7. ADX Line: The main line on the ADX indicator chart, representing the overall trend strength.
  8. Threshold: A specific value used as a reference point for decision-making within a trading strategy.
  9. Overbought: A condition when the ADX value is above a certain threshold, suggesting a potential trend reversal.
  10. Oversold: A condition when the ADX value is below a certain threshold, indicating a possible trend change.
  11. Crossover: When one ADX line crosses over the other, signaling potential trading opportunities.
  12. Smoothing: A technique to reduce noise in the ADX indicator by averaging data points.
  13. Volatility: The degree of price fluctuations in a financial instrument, impacting ADX readings.
  14. Moving Average: A commonly used tool to smooth ADX values and identify trends.
  15. Trading Signal: A trigger or alert generated by ADX readings to buy or sell.
  16. Stop Loss: A predetermined price level at which a trade is automatically closed to limit losses.
  17. Take Profit: A predetermined price level at which a trade is automatically closed to secure profits.
  18. Trend Following: A trading strategy that aims to capitalize on established trends indicated by ADX.
  19. Range-Bound: A market condition where prices move within a defined range, with low ADX values.
  20. Drawdown: The reduction in a trading account’s equity from its peak value to the lowest point.
  21. Risk-Reward Ratio: The ratio of potential profit to potential loss in a trade.
  22. Optimization: Adjusting ADX settings to find the best parameters for a specific strategy.
  23. False Signal: A trading signal generated by ADX that doesn’t result in a profitable trade.
  24. Position Sizing: Determining the amount of capital to allocate to a particular trade.
  25. Market Order: An order to buy or sell a financial instrument at the current market price.
  26. Limit Order: An order to buy or sell a financial instrument at a specified price or better.
  27. Holding Period: The duration for which a trade is open before being closed.
  28. Risk Management: Strategies and techniques to protect capital from significant losses.
  29. Profit Target: A predetermined level of profit that triggers the closure of a trade.
  30. Divergence: A situation where ADX trends differ from the price trend, indicating potential reversals.
  31. Aroon Indicator: A complementary indicator to ADX used to measure trend strength.
  32. Parabolic SAR: Another indicator often used in conjunction with ADX for trend analysis.
  33. EMA (Exponential Moving Average): A type of moving average that gives more weight to recent data.
  34. SMA (Simple Moving Average): A basic moving average that treats all data points equally.
  35. Whipsaw: A situation where ADX generates consecutive false signals in a choppy market.
  36. Risk Capital: The amount of money set aside for trading, separate from essential expenses.
  37. Margin: Borrowed funds used to leverage trading positions.
  38. Liquidity: The ease with which a financial instrument can be bought or sold without affecting its price.
  39. Slippage: The difference between the expected and actual execution price of a trade.
  40. Trend Reversal: A change in the direction of the market trend, indicated by ADX.
  41. Volatile Market: A market characterized by rapid and significant price movements.
  42. Swing Trading: A trading strategy that aims to profit from short to medium-term price swings.
  43. Day Trading: A strategy involving opening and closing positions within the same trading day.
  44. Position Trading: A long-term trading strategy that aims to capture major price trends.
  45. Risk-Free Rate: The theoretical return on an investment with zero risk, used in trading calculations.
  46. Correlation: The degree to which two financial instruments move together in price.
  47. Robustness: The ability of a trading strategy to perform consistently under various market conditions.
  48. Monte Carlo Simulation: A statistical method used to assess the performance of trading strategies.
  49. Algorithmic Trading: The use of computer algorithms to execute trading orders automatically.
  50. Profit and Loss Statement: A record of a trader’s financial performance, including gains and losses from trading activities.

Similar Posts