The average of the four prices of the bar: (open + high + low + close) / 4.
ohlc4 is a series float. It smooths a bar into one number using all four prices and is the source that Heikin Ashi style candles are usually compared with.
Type
series float
Remarks
- ohlc4 is the midpoint between hl2 and the average of the open and the close, so a gap moves it more than it moves hl2.
Example
//@version=6
indicator("ohlc4", overlay = true)
plot(ohlc4, "ohlc4", color.purple)
plot(close, "Close", color.gray)See also
Runs on Sidechair