Directional Movement (DM)
<< Click to Display Table of Contents >> Directional Movement (DM) |
Same as the ADX indicator with the addition of the +DI and -DI values.
... Courtesy of Investopedia
DM(int period)
DM(ISeries<double> input, int period)
Returns default ADX value
DM(int period)[int barsAgo]
DM(ISeries<double> input, int period)[int barsAgo]
Returns +DI value
DM(int period).DiPlus[int barsAgo]
DM(ISeries<double> input, int period).DiPlus[int barsAgo]
Returns -DI value
DM(int period).DiMinus[int barsAgo]
DM(ISeries<double> input, int period).DiMinus[int barsAgo]
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.
input |
Indicator source data (?) |
period |
Number of bars used in the calculation |
// Prints the current value of a 20 period +DI using default price type |
You can view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.