Aroon
<< Click to Display Table of Contents >> Aroon |
The Aroon indicator system consists of two lines, 'Aroon(up)' and 'Aroon(down)'. It takes a single parameter which is the number of time periods to use in the calculation. Aroon(up) is the amount of time (on a percentage basis) that has elapsed between the start of the time period and the point at which the highest price during that time period occurred. If the stock closes at a new high for the given period, Aroon(up) will be +100. For each subsequent period that passes without another new high, Aroon(up) moves down by an amount equal to (1 / # of periods) x 100.
Aroon(int period)
Aroon(ISeries<double> input, int period)
Returns up value
Aroon(int period).Up[int barsAgo]
Aroon(ISeries<double> input, int period).Up[int barsAgo]
Returns down value
Aroon(int period).Down[int barsAgo]
Aroon(ISeries<double> input, int period).Down[int barsAgo]
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.
input |
Indicator source data (?) |
period |
Number of bars used in the calculation |
// Prints the current up/down values of a 20 period Aroon indicator |
You can view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.