Aroon Oscillator
Previous Topic  Next Topic 

Definition

Courtesy of www.stockcharts.com

Syntax
AroonOscillator(int period)
AroonOscillator(IDataSeries inputData, int period)

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


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


Parameters

period

The number of bars to include in the calculation

inputData

Indicator source data (?)


Examples

// Prints the current values of a 20 period AroonOscillator using default price type
double upValue = AroonOscillator(20)[0];
Print("The current AroonOscillator value is " + upValue.ToString());

// Prints the current values of a 20 period AroonOscillator using high price type
double upValue = AroonOscillator(High, 20)[0];
Print("The current AroonOscillator value is " + upValue.ToString());


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