OPEN-SOURCE SCRIPT
Updated

Forecasting - Quadratic Regression

21 936
This script is written totally thanks to Alex Grover (tradingview.com/script/CDsPknAG-Quadratic-Regression/). Here it is implemented in conjunction with the seasonal forecast I showed in one of my previous posts. It takes the calculated QReg curve and extends its last section (Season) into the future (Forecasted periods).
Release Notes
Note:
A quadratic regression is the process of finding the equation of the parabola that best fits a set of data. As a result, we get an equation of the form: y = ax^^2 + bx + c where a ≠ 0.
See: varsitytutors.com/hotmath/hotmath_help/topics/quadratic-regression
Release Notes
Minor fix.
Release Notes
Minor fix to the seasonal_naive function.

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.