Directional Movement Index

DMI
Indicator

TrendSeparate panelFree on ChartLabs

The Directional Movement Index draws ADX, +DI and -DI. +DI and -DI show which side is pushing. ADX shows how steady that push has been.

Created by J. Welles Wilder Jr., 1978. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIDMIchartlabs.co/charts
Atlas reads it

-DI leads +DI. ADX is 61.8685.

ADX 61.8685 · +DI 2.4931 · -DI 45.2476

Atlas reads it

-DI leads +DI. ADX is 61.8685.

ADX 61.8685 · +DI 2.4931 · -DI 45.2476

Illustration on simulated data.

Directional Movement IndexWhat is the DMI indicator?

DMI is Wilder's directional system in one panel. Each bar after the first is split into an up move and a down move. The up move is this high minus the previous high. The down move is the previous low minus this low. Only the larger move counts, and only if it is positive. A tie counts for neither side.

A bar with high 12 and low 9.5 after a bar with high 11 and low 10 has an up move of 1 and a down move of 0.5, so +DM is 1 and -DM is 0. Those raw moves, and the true range, are Wilder-smoothed over the DI length. +DI and -DI are 100 times the smoothed move divided by the smoothed true range. They start on record 14.

ADX is a Wilder average of DX, and DX is 100 times the gap between +DI and -DI divided by their sum. With both lengths at 14, ADX starts on record 27. The lines are ADX #F50057, +DI #2962FF and -DI #FF6D00, printed to 4 decimals. Record 0 is the first bar.

Record 14 and 27

+DI and -DI need 14 smoothed bars. ADX needs 14 of those DX values, so it starts on record 27.

A tie

If the up move and the down move are equal, both directional moves are 0 for that bar.

DMI signalsFive patterns to know.

1Bullish lean

+DI above -DI

The smoothed up moves are larger than the smoothed down moves.

2Bearish lean

-DI above +DI

The smoothed down moves are the larger ones.

3Inconclusive

ADX rising

The gap between +DI and -DI has been widening. ADX itself has no direction.

4Inconclusive

ADX falling

The two DI lines are closer than they were. The push is less one-sided.

5Inconclusive

DI cross

The leading side has changed. ADX says whether that change has any strength yet.

DMI formulaHow it is calculated.

+DI=100×+DMTR
STEP 1

Pick a side

Compare the up move with the down move. Keep the larger one when it is positive. The example bar gives +DM of 1 and -DM of 0.

STEP 2

Smooth and scale

Wilder-smooth +DM, -DM and true range over 14 bars, seeded with a plain average. Divide and multiply by 100. +DI and -DI start on record 14.

STEP 3

Average the gap

DX is 100 times the absolute gap between the DIs, divided by their sum. ADX is a 14-bar Wilder average of DX, from record 27.

DMI settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
ADX Smoothing141 to 5,000The Wilder length on DX. The Signal lens changes this.
DI Length141 to 5,000The Wilder length on +DM, -DM and true range.
LinesADX #F50057, +DI #2962FF, -DI #FF6D00FixedThree lines, 1 px, 4 decimals, in their own panel.
Setting
ADX Smoothing
Default
14
Range
1 to 5,000
What it changes
The Wilder length on DX. The Signal lens changes this.
Setting
DI Length
Default
14
Range
1 to 5,000
What it changes
The Wilder length on +DM, -DM and true range.
Setting
Lines
Default
ADX #F50057, +DI #2962FF, -DI #FF6D00
Range
Fixed
What it changes
Three lines, 1 px, 4 decimals, in their own panel.
1423 bars in the ADX average
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

DMI strategiesUse it in 3 setups.

Take the side that leads

While+DIis above-DIthe up side leads

Traders often want the DI pair on the same side as the trade. ADX is the strength reading, not a direction.

Wait for ADX to agree

Ifthe DIs crossandADXis still fallingthentreat it as a change of side, not a trend

A cross says which move is larger now. A falling ADX says the gap is still narrowing.

A rising ADX with a clear leader

WhileADXrisesand one DI stays above the other

The same side has led the bar-to-bar comparison, and the gap has been growing. It is context for a trend trade.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

DMI mistakesCommon mistakes.

Reading ADX as a direction

ADX is a size of the gap. A high ADX can sit under a downtrend just as easily as an uptrend. Read +DI and -DI for the side.

Trading the first DI cross on a short chart

+DI and -DI are empty before record 14, and ADX before record 27. A chart with fewer bars has not finished the seed.

Treating an inside bar as a signal

An inside bar can give both moves as 0. It adds nothing to either side.

DMI combinationsPair it with these.

DMI FAQQuestions traders ask.

What are the DMI settings?

ADX smoothing 14 and DI length 14. There is no source menu. The highs, lows and closes are fixed.

When do the lines start?

+DI and -DI start on record 14. ADX starts on record 27. Record 0 is the first bar, and it has no previous high or low.

What is the worked bar?

High 12 and low 9.5 after high 11 and low 10. The up move is 1, the down move is 0.5, so +DM is 1 and -DM is 0.

What does a rising ADX mean?

The gap between +DI and -DI has been getting larger. It does not say which DI is on top.

Why can +DI and -DI both be low?

Both smoothed moves are small next to the true range. Neither side is pushing hard.

How is this different from the ADX indicator?

ADX draws one line. DMI draws that strength line plus +DI and -DI. On this page the ADX line is #F50057 and it prints 4 decimals.

Does DMI repaint?

No. A closed bar stays. The live bar moves until it closes.

Who created DMI?

J. Welles Wilder Jr., in New Concepts in Technical Trading Systems (1978).

Related indicatorsMore trend tools.

All trend indicators

Try DMI on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
DMI