The close-weighted price: (high + low + close + close) / 4.
hlcc4 is a series float that counts the close twice. It leans toward where the bar ended while still using its range.
Type
series float
Remarks
- hlcc4 sits exactly halfway between hl2 and the close, because the close carries half of the weight.
Example
//@version=6
indicator("hlcc4", overlay = true)
plot(hlcc4, "hlcc4", color.fuchsia)
plot(hlc3, "hlc3", color.gray)See also
Runs on Sidechair