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

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?


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
También en:

Exención de responsabilidad