Skip to content

hlc3 - PineScript Variable

hlc3 computes (high + low + close) / 3, often referred to as the “typical price.” It balances extremes and the closing price, making it a popular source for momentum and volume indicators.

float

series

  • Updates intrabar as soon as high or low makes a new extreme; final value stabilises once the bar closes.
  • Many volume-weighted indicators (e.g., VWAP) default to this typical price because it captures both range and closing context.
  • Swap close for hlc3 in oscillators to smooth signals without introducing additional lag.
//@version=5
indicator("HL C3 vs Close", overlay=false)
tp = hlc3
plot(close, "Close", color=color.blue)
plot(tp, "Typical price (hlc3)", color=color.orange)
plot(ta.ema(tp, 20), "EMA on hlc3", color=color.green)