Files
2026-02-23 17:27:35 -08:00

14 lines
348 B
Plaintext

// WCLPRICE: Weighted Close Price
// (High + Low + 2 * Close) / 4
// TA-Lib compatible — equivalent to TBar.HLCC4
//@version=6
indicator("WCLPRICE: Weighted Close Price", overlay=true)
wclprice(float h, float l, float c) =>
(h + l + 2.0 * c) * 0.25
result = wclprice(high, low, close)
plot(result, "WclPrice", color.new(color.red, 0), 2)