talib.WCLPRICE
Calculates the Weighted Close Price.
talib.WCLPRICE(inPriceHLC)Examples
Compute the Weighted Close Price from the latest K-lines.
javascript
function main() {
var records = exchange.GetRecords()
if (!records) return
var ret = talib.WCLPRICE(records)
Log(ret)
}
python
import talib
def main():
records = exchange.GetRecords()
if not records:
return
ret = talib.WCLPRICE(records.High, records.Low, records.Close)
Log(ret)Returns
| Type | Description |
numeric array | Indicator values, the same length as the input; the leading values without enough data are |
Arguments
| Name | Type | Required | Description |
inPriceHLC |
| Yes | K-line array; the high, low and close fields are used. In Python, pass |
See Also
Remarks
TA-Lib equivalent: WCLPRICE(Records[High,Low,Close]) = Array(outReal).