congestionCheck = ( close > low[1] and close < high[1]) and ( close[1] > low[2] and close[1] < high[2]) and ( close[2] > low[3] and close[2] < high[3])
bgcolor(color = congestionCheck? orange : na, transp=80)
bgcolor(color = congestionCheck? orange : na, transp=80, offset=-1)
bgcolor(color = congestionCheck? orange : na, transp=80, offset=-2)
CMFtest
⋅
@sujaybawaskar, edited and add bar colouring and converted to v5 ```//@version=5 indicator(title='Congestion Detector', overlay=true) congestionCheck = ( close > low[1] and close < high[1]) and ( close[1] > low[2] and close[1] < high[2]) and ( close[2] > low[3] and close[2] < high[3])