These functions implement the Directional Movement System developed by J. Welles Wilder Jr.. They are used to evaluate trend strength and trend direction, and to detect bullish or bearish momentum shifts via crossovers. They are commonly used in screening rules, ranking systems, and timing models to identify trending securities and directional breakouts.
Returns the Average Directional Movement Index (ADX) as defined by Welles Wilder. ADX is commonly used to measure trend strength (not direction). The offset parameter can be used to compare current ADX to previous values to identify strengthening or weakening trends.
Returns the DMI+ component of Wilder’s Directional Movement System. DMI+ represents positive directional movement. Use offset to retrieve historical values.
Returns the DMI- component of Wilder’s Directional Movement System. DMI- represents negative directional movement. Use offset to retrieve historical values.
Returns TRUE (or 1) if DMI+ crossed above DMI- within the previous offset bars. This is commonly interpreted as a shift toward positive directional dominance.
Returns TRUE (or 1) if DMI- crossed above DMI+ within the previous offset bars. This is commonly interpreted as a shift toward negative directional dominance.
Compare the current ADX value to the ADX value from 10 bars ago:
ADX(14,0) > ADX(14,10)
Use the crossover function with an offset window of 2 bars:
DMICrossOver(14,2)=TRUE
Compare DMI+ to DMI- on the current bar:
DMIPlus(14,0) > DMIMinus(14,0)