TradingView
sujaybawaskar
2018年12月25日下午3點29分

Congestion Detector 

INDIAN OIL CORPNSE

描述

This script detects price action congestion. These congestions are marked on chart itself.
評論
UnknownUnicorn6264620
thank you very much!
shivamsuper49
Very Nice
ramizismayilov10
thank you very much! 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)```
更多