Volatility Support & Resistance Script
Copy and Paste the below scripts in tradingview pine editor and click on add to the chart.
Support:
//@version=4
study(“Volatility Support by Koli”, overlay=true)
closebarcrnt = close
crntgreenbar = close > open
prevgreenbar= close[1] > open[1]
prevred2= close[2] < open[2]
prevred3 = close[3] < open[3]
volatilitysupport = crntgreenbar and prevgreenbar and prevred2 and prevred3
plotshape(volatilitysupport, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.tiny)
Resistance:
//@version=4
study(“Volatility resistance by Koli”, overlay=true)
closebarcrnt = close
crntgreenbar = close < open
prevgreenbar= close[1] < open[1]
prevred2= close[2] > open[2]
prevred3 = close[3] > open[3]
volatilitysupport = crntgreenbar and prevgreenbar and prevred2 and prevred3
plotshape(volatilitysupport, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.tiny)
If u see the below error:
Add to Chart operation failed, reason: line 2: no viable alternative at character ‘“’
Remove “ and again type “
If u see the below error:
Add to Chart operation failed, reason: line 11: no viable alternative at character ‘‘’
Remove ‘ and again type ‘