Aroon
Previous Topic  Next Topic 

Definition

Courtesy of www.stockcharts.com

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

Returns up value
Aroon(int period).Up[int barsAgo]
Aroon(IDataSeries inputData, int period).Up[int barsAgo]

Returns down value
Aroon(int period).Down[int barsAgo]
Aroon(IDataSeries inputData, int period).Down[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 up/down values of a 20 period Aroon using default price type
double upValue = Aroon(20).Up[0];
double downValue = Aroon(20).Down[0];
Print("The current Aroon up value is " + upValue.ToString());
Print("The current Aroon down value is " + downValue.ToString());


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