Aroon
Previous Topic  Next Topic 

Definition

Courtesy of www.stockcharts.com

Syntax

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

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


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