mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-17 01:58:06 +00:00
Co-authored-by: mihakralj <31756078+mihakralj@users.noreply.github.com>
16 lines
414 B
Plaintext
16 lines
414 B
Plaintext
// Licensed under the Apache License, Version 2.0
|
|
// © mihakralj
|
|
// 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)
|