Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
Talib
Overlap Studies
Momentum Indicators
talib.ADX
talib.ADXR
talib.APO
talib.AROON
talib.AROONOSC
talib.BOP
talib.CCI
talib.CMO
talib.DX
talib.IMI
talib.MACD
talib.MACDEXT
talib.MACDFIX
talib.MFI
talib.MINUS_DI
talib.MINUS_DM
talib.MOM
talib.PLUS_DI
talib.PLUS_DM
talib.PPO
talib.ROC
talib.ROCP
talib.ROCR
talib.ROCR100
talib.RSI
talib.STOCH
talib.STOCHF
talib.STOCHRSI
talib.TRIX
talib.ULTOSC
talib.WILLR
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
talib.AROON
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
| Type | Description |
array | Two-dimensional array: [Aroon Down array, Aroon Up array] (a tuple in the same order in Python). |
Arguments
| Name | Type | Required | Description |
inPriceHL |
| Yes | K-line array; the high and low fields are used. In Python, pass |
optInTimePeriod | number | No | Calculation period. Default |
See Also
Remarks
TA-Lib equivalent: AROON(Records[High,Low],Time Period = 14) = [Array(outAroonDown),Array(outAroonUp)].