This indicator can be used with moving averages using crosses as signals or as a band indicator by ploting a + dev as the upper band and a - dev as the lower one.
For any help or suggestions feel free to send a message :)
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
Become a Patreon and get access to exclusive technical indicators!
You can also check out some of the indicators I made for luxalgo : https://www.tradingview.com/u/LuxAlgo/#published-scripts
If I may please ask a very naive Q which I believe to be related to filters ?
I am trying to filter out so called whipsaw trades where the indicator whipsaws about a sma of the indicator. I have tried to do this by counting the number of bars between up crossings and down crossings using the bars since function. I'm not having much success by this means and my online searches suggest that I am not alone. The issue appears to be the absence of an array feature in pine script.
I will of course try your code for Auto Line Drift. I may well be way off at a tangent in my assumption that this feature will solve my problems and would appreciate any suggestions you might have for an appropriate filter to eliminate (reduce) small whipsaw trades.
your help would be very much appreciated. thank you. hillab