The ADX (Average Directional Index) measures the strength of a trend, from 0 to 100, without telling its direction. Its two companions tell who dominates: +DI (buying pressure) and −DI (selling pressure).
Calculation, in words: at each bar, upward move = high − previous high; downward move = previous low − low. Keep the larger of the two (if positive), the other counts as 0. Smooth over 14 bars and divide by the ATR: you get +DI and −DI in %.
Calculation, in numbers: DX = |+DI − −DI| / (+DI + −DI) × 100, then ADX = smoothed average of DX over 14 bars. +DI = 30 and −DI = 10 → DX = 20 / 40 × 100 = 50. If +DI = −DI, DX is 0: no pressure dominates.
Reading and plan: ADX below 20 = no clear trend, above 25 = trend; a rising ADX = a strengthening trend. Common use: only allow trend-following signals (crossover, breakout) when the ADX is above 25, in the direction given by +DI / −DI.
Pitfalls: a high ADX also occurs in a strong decline; it is smoothed twice, so it lags a lot; an ADX falling from a peak signals a slowdown, not necessarily a reversal; and the 20 and 25 thresholds are conventions, not laws.
Examples
FORCE-X (fictional market) : The SMA 50 gives the underlying direction. The filter only allows a buy if the price is above this curve and the ADX is above 25: flat stretches, where the price zigzags around the average, are filtered out.
J. Welles Wilder, 1978 : J. Welles Wilder introduced the ADX in 1978 in his book “New Concepts in Technical Trading Systems”. The same book also introduced the RSI, the ATR and the Parabolic SAR, found today on almost every charting platform.