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

talib.AD

talib.AD()函数用于计算Chaikin A/D Line (线随机指标)

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

talib.AD(inPriceHLCV)

inPriceHLCV参数用于指定K线数据。 inPriceHLCV true {@struct/Record Record}结构数组

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

AD()函数在talib库文档中的描述为:AD(Records[High,Low,Close,Volume]) = Array(outReal)

talib.CDLXSIDEGAP3METHODS talib.ADOSC