The midpoint of the bar's range: (high + low) / 2.
hl2 is a series float computed from high and low of the same bar. It ignores open and close, so it shows where the bar's range sat rather than where it ended.
The Supertrend and the median price band indicators use hl2 as their base line.
Type
series float
Remarks
- hl2 is the midpoint of the bar's range, so it does not change when the open or close moves inside the range, only when a new high or low prints.
Example
//@version=6
indicator("hl2", overlay = true)
plot(hl2, "hl2", color.blue)
plot(close, "Close", color.gray)See also
Runs on Sidechair