Range

Description

Range delivers the span/difference between the high and low in ticks for each bar. The range is always greater than or equal to 0.

Usage

Range()
Range(IDataSeries inSeries)
Range()[int barsAgo]
Range(IDataSeries inSeries)[int barsAgo]

Return value

double

When using this method with an index (e.g. Range()[int barsAgo] ), the range value for the referenced bar will be outputted.

Parameter

inSeries Input data series for the indicator

Visualization

Example

//Output for the value of the range
Print("The current bar has a range of: " + Range()[0]);

//Identical output
Print("The current bar has a range of: " + High[0] - Low[0]);

Last updated