Disparity Index

View as Markdown

Description

The Disparity Index that measures the difference between the price and an exponential moving average. A value greater could suggest bullish momentum, while a value less than zero could suggest bearish momentum.

Syntax

DisparityIndex(int period)

DisparityIndex(ISeries\<double\> input, int period)

Return Value

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

Parameters

ParameterDescription
inputIndicator source data (Series<T>)
periodNumber of bars used in the calculation

Examples

1// Prints the current value of a 15 period Disparity Index
2double value = DisparityIndex(15)[0];
3Print("The current Disparity Index value is " + value.ToString());