The Directional Movement Index (DMI) is a technical analysis indicator, introduced by J. Welles Wilder Jr. in 1978, that shows whether a market is trending and in which direction. It plots two lines, the positive directional indicator (+DI) and the negative directional indicator (-DI), and is the basis of a third, the average directional index (ADX).
Upward movement is the current high minus the previous high, and downward movement is the previous low minus the current low. In each period only the larger of the two counts, and only if positive. Each series is smoothed, usually over 14 periods, and divided by the average true range to give +DI and -DI. A +DI above -DI points to an upward trend, and the reverse to a downtrend. The gap between them is expressed as : with +DI at 30 and -DI at 10, DX is 50. Signals lag, and crossovers are unreliable in sideways markets.