Learn R Programming

TTR (version 0.24.4)

aroon: Aroon

Description

The Aroon indicator attempts to identify starting trends. The indicator consists of up and down lines, which measure how long it has been since the highest high/lowest low has occurred in the last n periods. Developed by Tushar Chande in 1995.

Usage

aroon(HL, n = 20)

Value

A object of the same class as HL or a matrix (if try.xts fails) containing the columns:

aroonUp

The Aroon up indicator.

aroonDn

The Aroon down indicator.

oscillator

The Aroon oscillator (aroonUp - aroonDn).

Arguments

HL

Object that is coercible to xts or matrix and contains either a High-Low price series, or a Close price series.

n

Number of periods to use in the calculation.

Author

Joshua Ulrich

Details

Aroon up (down) is the elapsed time, expressed as a percentage, between today and the highest (lowest) price in the last n periods. If today's price is a new high (low) Aroon up (down) will be 100. Each subsequent period without another new high (low) causes Aroon up (down) to decrease by (1 / n) x 100.

References

The following site(s) were used to code/document this indicator:
https://www.fmlabs.com/reference/Aroon.htm
https://www.fmlabs.com/reference/AroonOscillator.htm
https://www.linnsoft.com/techind/aroon-arn
https://school.stockcharts.com/doku.php?id=technical_indicators:aroon

See Also

See CCI, ADX, TDI, VHF, GMMA for other indicators that measure trend direction/strength.

Examples

Run this code

 ## Get Data and Indicator ##
 data(ttrc)
 trend <- aroon( ttrc[,c("High", "Low")], n=20 )

Run the code above in your browser using DataLab