What is the DMI (directional movement index)?
The directional movement index (DMI) splits each bar's range into upward and downward movement and asks which side has dominated.
It draws four lines: +DI (PDI), −DI (MDI), ADX for trend strength, and ADXR, a slower version of ADX. Ours uses Wilder's smoothing over 14 bars for the DIs and for ADX itself. The second input, labelled ADX smoothing (6 by default), actually sets ADXR: the average of today's ADX and the ADX from 5 bars earlier (the input minus one).
How is the DMI calculated?
+DI = 100 × W(+DM) / W(TR), −DI = 100 × W(−DM) / W(TR), DX = 100 × |+DI − −DI| / (+DI + −DI), ADX = Wilder avg(DX, 14), ADXR = (ADX + ADX[t-5]) / 2
The terms in the formula
- +DM / −DM
- Up move (high minus previous high) or down move (previous low minus low), whichever is larger and positive; the other is zero.
- TR
- True range: max(H − L, |H − prev C|, |L − prev C|).
- W()
- Wilder's running sum over 14 bars: S = S − S / 14 + x.
- ADX
- Wilder average of DX over 14 bars.
- ADXR
- Average of ADX now and ADX 5 bars ago.
How do you read the DMI?
- +DI above −DI shows upward movement dominating, the reverse shows downward movement dominating; their crossings mark changes in which side leads.
- ADX measures strength, not direction: readings above about 25 usually describe a trending market, below about 20 a weak or ranging one.
- A rising ADX means the current trend, up or down, is strengthening; a falling ADX means it is losing force.
- ADXR moving well below ADX shows the trend has gained strength quickly.
What are the limits of the DMI?
- Double smoothing makes ADX slow; it often peaks after the trend's strongest part.
- The DIs cross repeatedly in ranges, which is when ADX is low and crosses mean least.
- Gaps inflate true range and the directional moves in ways that a single news day can dominate.
- Our ADXR lookback input is labelled as ADX smoothing; changing it does not change ADX.
Where can you see it on TickerBase?
Open a live chart and add the indicator