Sidechair

hlcc4

Browse the reference

The close-weighted price: (high + low + close + close) / 4.

Try it in the editor

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

Pine ScriptClose-weighted priceOpen in editor
//@version=6
indicator("hlcc4", overlay = true)
plot(hlcc4, "hlcc4", color.fuchsia)
plot(hlc3, "hlc3", color.gray)

See also

Runs on Sidechair