background color based on volume
Posted: Thu Feb 24, 2022 7:52 am
Hello,
I want to use background color to chart when volume bigger that the last 3 bars.
please check what's wrong with this formula
thanks
indicator("volume detector", overlay=true)
VolDetector = volume > volume[1] and volume > volume[2] and volume > volume[3]
bgcolor(VolDetector ? color = color.white : na)
I want to use background color to chart when volume bigger that the last 3 bars.
please check what's wrong with this formula
thanks
indicator("volume detector", overlay=true)
VolDetector = volume > volume[1] and volume > volume[2] and volume > volume[3]
bgcolor(VolDetector ? color = color.white : na)