ohlc4 - Pine Script Variable
Overview
Section titled “Overview”Is a shortcut for (open + high + low + close)/4
floatQualifier
Section titled “Qualifier”series
Remarks
Section titled “Remarks”- Represents the average of open, high, low, and close for each bar.
Example
Section titled “Example”//@version=6indicator("OHLC4 average", overlay=true)
plot(ohlc4, "OHLC4", color=color.new(color.orange, 0))plot(ta.ema(ohlc4, 20), "EMA(OHLC4)", color=color.new(color.blue, 0))