TradingView
sujaybawaskar
25. Dez. 2018 15:29

Congestion Detector 

INDIAN OIL CORPNSE

Beschreibung

This script detects price action congestion. These congestions are marked on chart itself.
Kommentare
UnknownUnicorn6264620
thank you very much!
shivamsuper49
Very Nice
mosellemontreal
Thanks Mr Sujayabawskar.. really good work there.
sujaybawaskar
study(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])
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])

barcolor(congestionCheck ? color.orange : na)
barcolor(congestionCheck ? color.orange : na, offset=-1)
barcolor(congestionCheck ? color.orange : na, offset=-2)

bgcolor(congestionCheck ? color.orange : na, transp=80)
bgcolor(congestionCheck ? color.orange : na, offset=-1, transp=80)
bgcolor(congestionCheck ? color.orange : na, offset=-2, transp=80)```
Mehr