capissimo

Forecasting - Quadratic Regression

capissimo Updated   
This script is written totally thanks to Alex Grover (www.tradingview.com/...uadratic-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: www.varsitytutors.co...quadratic-regression
Release Notes:
Minor fix.
Release Notes:
Minor fix to the seasonal_naive function.
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?