Files

16 lines
414 B
Plaintext
Raw Permalink Normal View History

// Licensed under the Apache License, Version 2.0
// © mihakralj
2026-02-23 17:27:35 -08:00
// 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)