
The average directional movement index (ADX) was developed in 1978 by J. Welles Wilder as an indicator of trend strength in a series of prices of a financial instrument. ADX has become a widely used indicator for technical analysts, and is provided as a standard in collections of indicators offered by various trading platforms.
The ADX is calculated from two indicators developed by Wilder: the positive directional indicator () and the negative directional indicator ().
Let , , and denote the high, low, and closing prices in period , respectively. Define the upward and downward movements as
The positive and negative directional movements are
and
For a sequence , write for Wilder's -period smoothed moving average. It is initialized with the arithmetic mean of the first available observations and subsequently calculated recursively as
Wilder originally used periods.
The true range is
and the average true range is
The directional indicators are
The directional index is
Finally, the ADX is obtained by smoothing the directional index:
Thus, after initialization with the arithmetic mean of the first available values of , subsequent values satisfy
The ratio formulas above apply when their denominators are nonzero.
Variations of the calculation use other moving averages, including an exponential moving average, a weighted moving average, or an adaptive moving average.
The ADX does not indicate trend direction or momentum, only trend strength. It is a lagging indicator; that is, a trend must have established itself before the ADX will generate a signal that a trend is under way. ADX will range between 0 and 100. Generally, ADX readings below 20 indicate a weak trend, while readings above 40 indicate a strong trend. An exceptionally strong trend is typically indicated by readings above 50. Alternative interpretations have also been proposed and adopted by technical analysts. For example, ADX has been described as a reliable coincident indicator of classical chart pattern development, with readings below 20 often occurring shortly before pattern breakouts. The value of the ADX is proportional to the slope of the trend. The slope of the ADX line is proportional to the acceleration of the price movement (changing trend slope). If the trend is a constant slope then the ADX value tends to flatten out.
Various market timing methods have been devised using ADX. One of these methods is discussed by Alexander Elder in his book Trading for a Living. One of the best buy signals is when ADX turns up when below both Directional Lines and +DI is above -DI. You would sell when ADX turns back down.
adx.