The talib.WCLPRICE()
function is used to calculate the Weighted Close Price.
The return value of the talib.WCLPRICE()
function is a one-dimensional array.
array
talib.WCLPRICE(inPriceHLC)
The inPriceHLC
parameter is used to specify the K-line data.
inPriceHLC
true
{@struct/Record Record} structure array
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);
}
The WCLPRICE()
function is described in the talib library documentation as: WCLPRICE(Records[High,Low,Close]) = Array(outReal)