PROTECTED SOURCE SCRIPT
Updated

Exponential Least Squares Moving Average

1 376
Modified LSMA (Least Squares Moving Average) to use exponential rates of growth instead of linear regression. Inputting a number into the confidence interval allows the user to have set percentage of statistical guarantee based on past movement. To set this percentage of guarantee (Default set to 97.5%), refer to the input values below:

0.000 = 50%
0.255 = 60%
0.525 = 70%
0.835 = 80%
1.040 = 85%
1.285 = 90%
1.645 = 95%
1.960 = 97.5%
2.330 = 99%
Release Notes
Modified LSMA ( Least Squares Moving Average ) to use exponential rates of growth instead of linear regression . Inputting a number into the confidence interval allows the user to have set percentage of statistical guarantee based on past movement. To set this percentage of guarantee (Default set to 99.0%), refer to the input values below:

0.000 = 50%
0.255 = 60%
0.525 = 70%
0.835 = 80%
1.040 = 85%
1.285 = 90%
1.645 = 95%
1.960 = 97.5%
2.330 = 99%

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.