talib.AROONOSC

talib.AROONOSC()函数用于计算Aroon Oscillator(阿隆震荡指标)

talib.AROONOSC()函数的返回值为一维数组。 array

talib.AROONOSC(inPriceHL) talib.AROONOSC(inPriceHL, optInTimePeriod)

inPriceHL参数用于指定K线数据。 inPriceHL true {@struct/Record Record}结构数组 optInTimePeriod参数用于设置时间周期,默认值为14。 optInTimePeriod false number


function main() {
    var records = exchange.GetRecords()
    var ret = talib.AROONOSC(records)
    Log(ret)
}

import talib
def main():
    records = exchange.GetRecords()
    ret = talib.AROONOSC(records.High, records.Low)
    Log(ret)

void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.AROONOSC(records);
    Log(ret);
}

AROONOSC()函数在talib库文档中的描述为:AROONOSC(Records[High,Low],Time Period = 14) = Array(outReal)