Market Direction Indicator (MDI), by Donald Lambert, is an extension of simple moving average cross over systems. Series of price cross over points are determined to derive MDI.
Note that the short/long lengths will differ between instruments. They need to be tuned properly.
I have added an option to specify a "cutoff" parameter. When MDI is in the cutoff zone (-/+ cutoff), bars are colored gray. Set this to zero to turn off cutoffs.
Other options: - OverlayMode: Enable this to color bars. MDI values are not plotted. If unchecked, MDI default rendering mode is Histogram mode. - ShowBelowZero: Plots the negative values below zero (Oscillator mode)
Use "MDI" and "ZeroLine" for setting up alerts. Make sure MDI is in OscillatorMode.