OPEN-SOURCE SCRIPT
Updated

Forecasting - Least Squares Regression

Tested on 5m TF with EURUSD. Settings should be modified appropriately for other TFs, lookbacks and securities. This indicator does not repaint.
Release Notes
Added repainting/non-repainting option.

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.