Directional Movement Index (DMI)
Previous Topic  Next Topic 

Definition



Syntax
DMI(int period)
DMI(IDataSeries inputData, int period)

Returns default value
DMI(int period)[int barsAgo]
DMI(IDataSeries inputData, int period)[int barsAgo]


Return Type
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.


Parameters

period

The number of bars to include in the calculation

inputData

Indicator source data (?)


Examples

// Prints the current value of a 20 period DMI using default price type
double value = DMI(20)[0];
Print("The current DMI value is " + value.ToString());


Source Code
You can open up the indicator source code via the NinjaScript Editor.