If you are a trader or stock investor looking into price action tools, at some point you will need to know what is the ADX. How does it work and what can it show me.
The ADX stands for the Average Directional Index. The term itself is potentially misleading as the ADX itself is non-directional. The ADX is a number between 0 and 100 that represents the strength of a price trend, whether that trend is up or down.
The ADX is often referred to as the trend strength indicator. Turning that phrase around that means it should be used to assess the strength of a price movement trend.
How is the ADX derived?
The ADX is derived from two Directional Indicators, the +DI and the -DI, which themselves are derived from positive and negative indicators of directional movement, the +DM, and the -DM.
The ADX is usually displayed as a system of three lines, the ADX itself, the +DI and the -DI. All three lines are usually 14 day smoothed moving averages and all three together are often referred to as the Directional Movement Indicator.
Calculation of the Directional Movement Indicators,+DM, -DM
The +DM and the -DM are both calculated from the difference between two consecutive price highs, and two consecutive price lows.
If the current high is lower than the previous high then the +DM is zero. If the current low is higher than the previous low then the -DM is zero. As far as this indicator is concerned, there are four kinds of price movement captured. This is best seen with a diagram.
Plus DM – The Directional Movement is positive, the current high $105 minus the previous high $103, i.e. $2 is greater than the previous low $97 minus the current low $98, i.e. $1. +DM is equal to the current high minus the previous high, i.e. +DM = 2 and -DM = 0
Minus DM – The Directional Movement is negative, the previous low $99 minus the current low $96, i.e. $3 is greater than the current high $102 minus the previous high $103 i.e. $1. -DM is equal to the previous low minus the current low i.e. -DM = 3 and +DM = 0.
Outside movement. When the high goes higher and the low goes lower, the price range is expanding. The greater of the differences between the two highs and the two lows determines whether +DM or -DM wins. In the example above the difference between the lows is greater. +DM = 0 and -DM = 2.
Inside movement. This is when the price is making lower highs and higher lows. This is also called a period of price contraction. Irrespective of the comparative magnitudes of the differences between the consecutive highs and the consecutive lows, when the price is contracting it is considered that there is no directional movement and both +DM and -DM = 0.
Calculating the ADX
The +DM and -DM make two sequences of numbers. The + Directional Indicator and the – Directional Indicator are derived as smoothed moving averages of +Directional Movement and – Directional Movement adjusted by a number called the Average True Range. The Average True Range is itself a smoothed moving average of the True Range.
The True Range for each period, which is typically one day, is the larger in each case of the absolute values of:
- The difference between the current high and the current low
- The difference between the current high and the previous close
- The difference between the current low and the previous close
The ADX and all the component elements, +DM, -DM, +DI, -DI, True Range, and Average True Range usually use daily prices and 14 day smoothed moving averages.
So what does the ADX show
Now that we have plodded through much of the detail of what lies behind the ADX let’s look at what it shows.
Going back to our definition, the ADX itself shows the strength of a price trend but not the direction. As already noted, ADX is a number between 0 and 100. The closer the ADX is to zero, the weaker is the price trend. The larger is the numerical value of the ADX the stronger is the price trend.
The price direction is given by the two directional indicators, +DI and -DI. When +DI is greater than -DI then the general price trend is bullish. When -DI is greater than +DI then the general price trend is bearish.
The ADX and the Directional Movement Indicator system was developed by J. Welles Wilder and first published in his book, New Concepts in Technical Trading Systems.
How the whole ADX and DMI system works
Putting all this together, the ADX and DMI system can be used to spot trading opportunities in a particular stock, currency pair, or commodity as follows.
- If the ADX is below 20 there is no trend so no trade opportunity
- If the ADX is above 25 (many traders use 20 today) there is a trend and potentially a trade opportunity
For a long trade
- If the +DI moves above the -DI and the ADX is above 25 (or 20) then open a long position
- Use the price low for the day as the initial stop loss.
- If the ADX drops and/or the +DI drops below the -DI wait until the position is stopped out.
- If the ADX stays above 25 (or 20) and the +DI stays above the -DI the price should trend upwards, move a trailing stop up and take profit when the ADX weakens or when the price hits your trailing stop.
For a short trade
- If the -DI moves above the +DI and the ADX is above 25 (or 20) then open a short position
- Use the price high for the day as the initial stop loss.
- If the ADX drops and/or the -DI drops below the +DI wait until the position is stopped out.
- If the ADX stays above 25 (or 20) and the -DI stays above the +DI then price should trend downwards, move a trailing stop down and take profit when the ADX weakens or when the price hits your trailing stop.
And here is what that looks like as a flowchart.
ADX/DMI in action
So much for theory.
It’s time to have a look at how the ADX/DMI system performs under some familiar price movements. Here is how the price of the Standard and Poor’s 500 Index tracking fund from SPDR, symbol SPY behaved between early February and mid-April 2020 with the ADX/DMI shown underneath.
This was a period of strong price movement. The SPY, tracking the Standard and Poor’s 500 index had reached an all-time high of $329.08 on 19 February after a long bull market of a few years. Then the price dropped precipitously to a low of $218.26 on 23 March after which the price started to climb back again.
The ADX/DMI combination gave the following signals during this period
- A buy signal on 4 February at $328.62
- A sell signal on 20 February at $335.59
- A buy signal on 7 April at $270.54
ADX/DMI and the MACD
Let’s compare what buy and sell signals the Moving Average Convergence Divergence indicator or, MACD for short gave for SPY for the same period.
For a detailed explanation of how the MACD works and generates buy and sell signals, check here.
Here is what the SPY price, the ADX/DMI, and MACD look like for that period.
In this period the MACD generated two clear signals
- A sell signal on 21 February at $334.43
- A buy signal on 26 March at $256.61
ADX/DMI, the MACD, and the RSI
Making another comparison, let’s look now at the Relative Strength Indicator or RSI for short and what indications that gave for the same price chart.
The RSI was also an indicator developed by J Welles Wilder and published in the same book, New Concepts in Technical Trading Systems.
For a more detailed look at the RSI, check here.
This is what the SPY price, the ADX/DMI, the MACD, and the RSI look like on that same price chart.
In this period the indications from the RSI were not really very helpful. Not shown on the chart, the RSI was indicating that the SPY was overbought in late January. However, it also indicated that the SPY was oversold around 25 February.
If you had followed just the RSI and bought the SPY on 25 February you would have entered at around $329.79. You would not have been a very happy camper when the price continued to tumble down to a low of $218.26 a month later.
Comparing the signals
Just considering the price movement of the SPY for the period 1 February to 14 April 2020, this is what would have happened if we had followed signals from these systems, assuming that where relevant we started with a long position.
The first signal from the ADX/DMI would have us buy in at $328.62, then sell at $335.59 that would be a gain of 2.12%, then buy again at $270.54 if we assume that we closed out at the end of the period on 14 April at $282.55 that would have been another gain of 4.44%. This equates to a gain over the period of 6.56%
If we assume that we already held a long position at the beginning of the period we would have bought in at $320.81. The MACD would have us exit that position at $334.43 so a gain of 4.25%. The MACD would have us buy back in at $256.61. Again if we assume that we held to the end and closed on 14 April at $282.55 that would have been another gain of 10.11%. This equates to a gain over the period of 14.35%
In contrast, the RSI gave a sell signal late in January and if we had been following only that indicator we would not have been invested in SPY at the start of the period. The RSI gave a buy signal on 26 February. Following that signal, we would have bought at $308.32. Assuming that we held that position until 14 April when the price reaches $282.55. So that would have been a loss of 8.36%
For comparison, the SPY price over the whole period started at $320.81 and ended at $282.55. So that was a loss of 11.93% which is the loss we would have experienced had we adopted a simple buy and hold strategy. Here is a comparison of results.
|ADX/DMI||MACD||RSI||Buy and hold|
What we conclude from this
This was a very limited test drive of the ADX/DMI and comparable trading systems. In this example, both the ADX/DMI and the MACD outperformed a basic buy and hold approach fairly well while the RSI gave a marginal improvement. However, it would be a mistake to draw too many conclusions from this very limited test.
Best conditions for the ADX/DMI
The ADX/DMI system works best with volatile price movement. The system is often used for Forex and commodities trading. It can be used for stocks as long as there is a degree of volatility. J Welles Wilder measured volatility through the Average Trading Range which was a part of his ADX/DMI system. Price volatility is needed for the ADX/DMI system to generate clear signals.
For a more detailed background on the ADX/DMI system, check here.
Answers to some questions about the ADX
Q Is the ADX a good indicator?
A. The ADX is a good indicator as long as it is used in conjunction with other indicators. The ADX is a number from 0 to 100 and only tells you the strength of a price trend not the direction of the trend. The ADX can be used with the plus and minus Directional Indicators. When the ADX is above 20 and the +DI crosses above the -DI that is an indicator of bullish price movement and a buy signal. When the ADX is above 20 and the -DI crosses above the +DI that is an indicator of bearish price movement and a sell signal. The ADX and + and – DI work best with volatile stocks, commodities, or currency pairs.
Q How is the ADX indicator calculated?
A. The ADX is calculated from a comparison of the difference between the current price high and the previous price high with the difference between the current price low and the previous price low. The ADX usually uses smoothed 14-day moving averages.
Q What is the meaning of the ADX indicator?
A. ADX stands for Average Directional Index. It shows the strength but not the direction of a price trend.
Q Which indicator works best with the ADX?
A. The best indicators to use with the ADX are the plus Directional Indicator and minus Directional Indicator. Much has been written saying that the ADX works best with the RSI. This article demonstrated that the RSI does not always give reliable buy and sell signals on its own.
I hope you found this article interesting and useful. Do leave me a comment, a question, an opinion, or a suggestion and I will reply soonest. And if you are inclined to do me a favor, scroll down a bit and click on one of the social media buttons and share it with your friends. They may just thank you for it.
Disclaimer: I am not a financial professional. All the information on this website and in this article is for information purposes only and should not be taken as investment advice, good or bad.
Affiliate Disclosure: This article contains affiliate links. If you click on a link and buy something, I may receive a commission. You will pay no more so please go ahead and feel free to make a purchase. Thank you!