ta.dmi
Directional movement index: returns [plusDI, minusDI, adx].
ta.dmi(diLength: simple int, adxSmoothing: simple int) -> series [float, float, float]
Parameters
diLengthsimple int: Bars of Wilder's averages of the directional movement and of the true range that give +DI and -DI; a literal or an input, 1 to 5000.adxSmoothingsimple int: Bars of Wilder's average of DX that gives the ADX; a literal or an input, 1 to 5000.
Example
[plus, minus, adx] = ta.dmi(14, 14)