资源加载中... loading...

talib.AROON

talib.AROON()函数用于计算Aroon (阿隆指标)

talib.AROON()函数的返回值为:二维数组。 array

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

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

function main() {
    var records = exchange.GetRecords()
    var ret = talib.AROON(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.AROON(records.High, records.Low)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.AROON(records);
    Log(ret);
}

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

talib.APO talib.AROONOSC