Choppiness Index

View as Markdown

Description

The Choppiness Index is designed to determine if the market is choppy (trading sideways) or not choppy (trading within a trend in either direction).

Syntax

ChoppinessIndex(int period)

ChoppinessIndex(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 14 period Choppiness Index
2double value = ChoppinessIndex(14)[0];
3Print("The current Choppiness Index value is " + value.ToString());