talib.CEIL

talib.CEIL()函数用于计算向上取整函数(Vector Ceil)

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

talib.CEIL(inReal)

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


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

import talib
def main():
    records = exchange.GetRecords()
    ret = talib.CEIL(records.Close)
    Log(ret)

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

CEIL()函数在talib库文档中的描述为:CEIL(Records[Close]) = Array(outReal)