Dynamic Momentum Index (DMIndex)
Previous Topic  Next Topic 

Definition

Courtesy of prophet.net

Syntax
DMIndex(int smooth)
DMIndex(IDataSeries inputData, int smooth)

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


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


Parameters

smooth

The number of bars to include in the calculation

inputData

Indicator source data (?)


Examples

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


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