OPEN-SOURCE SCRIPT

DMI Modified

This is a Directional Movement Index (DMI) with a twist, instead of plotting the positive direction of +DI and negative direction for -DI, we subtract the +DI with the -DI on scales of 100 to -100.
The result is plotted with a oscillator to identify the current trend.
DMI Modified supports multiple moving averages (default is JMA with length of 3). You can disable moving averages smoothing in settings.

== About the indicator ==
The Directional Movement Index, or DMI, is an indicator developed by J. Welles Wilder in 1978 that identifies in which direction the price of an asset is moving.
The indicator does this by comparing prior highs and lows and drawing two lines: a positive directional movement line (+DI) and a negative directional movement line (-DI)

In our case we do not draw the two lines, but the result of the subtraction of the two.

== Oscillator Colors ==
GREEN : Asset is above zero line with a strong up trend.
LIGHT GREEN: Asset is above zero line but up trending might be weakening.
RED : Asset is below zero line with a strong downtrend.
LIGHT RED: Asset is below zero line but down trending might be weakening.

== Notes ==
Can also be used to find divergences.
Bar coloring is disabled by default

Like if you like and Enjoy!
There is an idea to make a new strategy combined with DMI Modified (this script) and another script, hench, Follow.
Directional Movement Index (DMI)DMI

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Appreciation of my work: paypal.me/dman103
Premium Pivot Points Algo Indicator: tradingview.com/script/LFBaHNuA-Pivot-Points-Algo/
LIVE Stream - Pivot Points Algo: youtube.com/channel/UCFyqab-i0xb2jf-c18ufH0A/live
Also on:

Disclaimer