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

talib指标库

以下是CCI指标调用范例代码,更多的talib指标函数可以查阅发明者量化交易平台API手册

function main() {
    var records = exchange.GetRecords()
    var cci = talib.CCI(records, 14)
    Log(cci)
}
# Python需要单独安装talib库
import talib
def main():
    records = exchange.GetRecords()
    # 14这个参数可以缺省
    cci = talib.CCI(records.High, records.Low, records.Close, 14)   
    Log(cci)
void main() {
    auto records = exchange.GetRecords();
    auto cci = talib.CCI(records, 14);
    Log(cci);
}
TA指标库 JavaScript库