I'm trying to see if it's possible to convert the Bollinger Squeeze code that's using pinescript over to thinkorswim? Script below looking to convert. If anyone could help, that would be awesome!
https://in.tradingview.com/script/7z9IEegn-Bollinger-Squeeze/
//@version=3
study("Bollinger Squeeze",overlay=true)
middle = sma(close,20)
top = middle + (stdev(close,20)*2)
bottom= middle - (stdev(close,20)*2)
bandwidth=(top-bottom)/ middle
a_100=bandwidth<=lowest(bandwidth,100)
a_200=bandwidth<=lowest(bandwidth,200)
plotshape(a_100,style=shape.xcross,size=size.small)
plotshape(a_200,style=shape.circle,size=size.small)
//iff(bandwidth<=lowest(bandwidth,100),a_100=1,0)
//a_200 = bandwidth<=lowest(bandwidth,200)
//plot(close,style=circles,linewidth=4, color =red)