I have noticed that the Tradingview long and short position Tool default value is pretty good to use as stop loss and take profit, at least for my strategy. Does anyone know how this tool compute the default value ?
Thank you very very very much processingclouds! its finally working.
I had try to declare filt=0.0 outside, just before the ssfilter function and it wasn't working.
Hello, I recently start to learn Pine code few weeks ago (huge thanks to Mathew for the fantastic tutorial !!!). I am trying to convert an old code I found from #madrid into version 5 ssFilter( price, lowerBand ) => angle = sqrt(2)*PI/lowerBand a1= exp(-angle) b1 = 2*a1*cos(angle) c2 = b1 c3 = -a1*a...