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 :)
« Je prendrai l’essor et je m’envolerai vers la mer.
« Je connaîtrai le goût des brises du large. J’entendrai les grands cris de la tempête.
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