OPEN-SOURCE SCRIPT
Updated

Auto-Filter

4 360
A least squares filter using the Auto line as source, practical for noise removal without higher phase shift.

Its possible to create another parameter for the auto-line length, just add a parameter Period or whatever you want.

r = round(close/round)*round
dev = stdev(close,Period)


Hope you enjoy :)
Release Notes
  • No longer need to round
  • Color change
  • Color change based on indicator direction discontinued

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.