handsheik

Tame Polynomial LSMA Estimation

handsheik Updated   
Experimental Script!

Big thanks to alexgrover for his original Polynomial LSMA Estimation script.
I liked the concept and thought about how to make it behave more like a moving average, with less overshoot.
My idea is to use "sigma approximation" to tame the kernel. Hence the name of this script.

Higher "orders" will make the filter stick closer to the price.
You might notice that with an order of 2 or 3, it behaves more like a traditional moving average, with reduced lag.


Note: This is my first publication. I didn't have enough reputation to post images with it.

Once again, much thanks to alexgrover and the TradingView community!
Release Notes:
Shortened the code.
Now using arrays.
Open-source script

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.

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.

Want to use this script on a chart?