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

talib.WCLPRICE

talib.WCLPRICE()函数用于计算Weighted Close Price (加权收盘价)

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

talib.WCLPRICE(inPriceHLC)

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

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

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

talib.TYPPRICE 结构体