NinjaScript > Language Reference > Indicator Methods >

Range Indicator (RIND)

Print this Topic Previous pageReturn to chapter overviewNext page

Description

The Range indicator compares the intraday range (high - low) to the inter-day (close - previous close) range. When the inter-day range is less than the intraday range, the Range Indicator will be a high value. This signals an end to the current trend. When the Range Indicator is at a low level, a new trend is about to start.
 
The Range Indicator was developed by Jack Weinberg and was introduced in his article in the June, 1995 issue of Technical Analysis of Stocks & Commodities magazine.

 

 

Syntax

RIND(int periodQ, int smooth)
RIND(IDataSeries input, int periodQ, int smooth)

 

Returns default value
RIND(int periodQ, int smooth)[int barsAgo]
RIND(IDataSeries input, int periodQ, int smooth)[int barsAgo]

 

 

Return Value

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

 

 

Parameters

input

Indicator source data (?)

periodQ

The number of bars to include in the calculation for the short term stochastic range lookback

smooth

The number of bars to include for the EMA smoothing of the indicator

 

 

Examples

// OnBarUpdate method
protected override void OnBarUpdate()
{
   // Prints out a historical RIND value
   double value = RIND(3, 10)[5];
   Print("RIND value of 5 bars ago is " + value.ToString());
}

 

 

Source Code

You can view this indicator method source code by selecting the menu Tools > Edit NinjaScript > Indicator within the NinjaTrader Control Center window.