ADX and DMI

Wilder's trend-strength line (ADX) with the two directional lines (+DI and -DI) that show which side is in control.

ADX/DMI 14META · daily
ADX/DMI on a daily META chart in StockVyze

What it measures

The Directional Movement system, introduced by J. Welles Wilder Jr., compares how far each bar extends beyond the previous bar's high (upward movement) with how far it extends below the previous low (downward movement), relative to the true range.

OutputMeaning
plus_diStrength of upward directional movement (+DI)
minus_diStrength of downward directional movement (-DI)
adxSmoothed spread between +DI and -DI: how strong the trend is, whichever way it points

All three use Wilder smoothing over period bars (14 by default) and need at least twice that many bars before they appear. ADX can start later than the directional lines on very quiet histories, because it only counts bars where there was some directional movement.

How to read it

  • Trend strength. ADX above about 25 is conventionally read as a trending market, below about 20 as a range. ADX does not show direction.
  • Direction. +DI above -DI means upward movement dominates; -DI above +DI, downward.
  • Rising ADX. A rising ADX means the trend, up or down, is strengthening; a falling ADX means it is losing force.

Common mistakes

  • Reading high ADX as bullish. A strong downtrend also produces a high ADX.
  • Trading every DI cross. In ranges, +DI and -DI cross often; many traders only act on crosses when ADX is also elevated.

Use it in a scan

A trending stock with upward movement in control:

adx(14) > 25 and dmi_plus(14) > dmi_minus(14)

Inputs

InputTypeDefaultRange
periodinteger142 – 300

Outputs

adx, plus_di, minus_di

References