Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
Talib
Overlap Studies
Momentum Indicators
Volume Indicators
Volatility Indicators
Cycle Indicators
Price Transform
Statistic Functions
Math Transform
Math Operators
Pattern Recognition
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Calculates the Aroon and returns the Aroon Down and Aroon Up.

talib.AROON(inPriceHL)
talib.AROON(inPriceHL, optInTimePeriod)

Examples

Compute the Aroon from the latest K-lines.

javascript
function main() { var records = exchange.GetRecords() if (!records) return var ret = talib.AROON(records) // Output: [Aroon Down array, Aroon Up array] Log(ret) }
python
import talib def main(): records = exchange.GetRecords() if not records: return ret = talib.AROON(records.High, records.Low) # Output: (Aroon Down array, Aroon Up array) Log(ret)

Returns

TypeDescription

array

Two-dimensional array: [Aroon Down array, Aroon Up array] (a tuple in the same order in Python).

Arguments

NameTypeRequiredDescription

inPriceHL

Record array

Yes

K-line array; the high and low fields are used. In Python, pass records.High, records.Low in this order.

optInTimePeriod

number

No

Calculation period. Default 14.

See Also

Remarks

TA-Lib equivalent: AROON(Records[High,Low],Time Period = 14) = [Array(outAroonDown),Array(outAroonUp)].