OPEN-SOURCE SCRIPT
Polynomial Regression Bands w/ Extrapolation of Price [Loxx]

Polynomial Regression Bands w/ Extrapolation of Price [Loxx] is a moving average built on Polynomial Regression. This indicator paints both a non-repainting moving average and also a projection forecast based on the Polynomial Regression. I've included 33 source types and 38 moving average types to smooth the price input before it's run through the Polynomial Regression algorithm. This indicator only paints X many bars back so as to increase on screen calculation speed. Make sure to read the tooltips to answer any questions you have.
What is Polynomial Regression?
In statistics, polynomial regression is a form of regression analysis in which the relationship between the independent variable x and the dependent variable y is modeled as an nth degree polynomial in x. Polynomial regression fits a nonlinear relationship between the value of x and the corresponding conditional mean of y, denoted E(y |x). Although polynomial regression fits a nonlinear model to the data, as a statistical estimation problem it is linear, in the sense that the regression function E(y | x) is linear in the unknown parameters that are estimated from the data. For this reason, polynomial regression is considered to be a special case of multiple linear regression .
Related indicators
Polynomial-Regression-Fitted Oscillator [Loxx]
![Polynomial-Regression-Fitted Oscillator [Loxx]](https://s3.tradingview.com/z/ZKdY5nCV_mid.png)
Polynomial-Regression-Fitted RSI [Loxx]
![Polynomial-Regression-Fitted RSI [Loxx]](https://s3.tradingview.com/g/gKdG39Do_mid.png)
PA-Adaptive Polynomial Regression Fitted Moving Average [Loxx]
![PA-Adaptive Polynomial Regression Fitted Moving Average [Loxx]](https://s3.tradingview.com/x/xj9dbGma_mid.png)
Poly Cycle [Loxx]
![Poly Cycle [Loxx]](https://s3.tradingview.com/y/ywjaMkyI_mid.png)
Fourier Extrapolator of Price w/ Projection Forecast [Loxx]
![Fourier Extrapolator of Price w/ Projection Forecast [Loxx]](https://s3.tradingview.com/u/u0r2gpti_mid.png)
What is Polynomial Regression?
In statistics, polynomial regression is a form of regression analysis in which the relationship between the independent variable x and the dependent variable y is modeled as an nth degree polynomial in x. Polynomial regression fits a nonlinear relationship between the value of x and the corresponding conditional mean of y, denoted E(y |x). Although polynomial regression fits a nonlinear model to the data, as a statistical estimation problem it is linear, in the sense that the regression function E(y | x) is linear in the unknown parameters that are estimated from the data. For this reason, polynomial regression is considered to be a special case of multiple linear regression .
Related indicators
Polynomial-Regression-Fitted Oscillator [Loxx]
![Polynomial-Regression-Fitted Oscillator [Loxx]](https://s3.tradingview.com/z/ZKdY5nCV_mid.png)
Polynomial-Regression-Fitted RSI [Loxx]
![Polynomial-Regression-Fitted RSI [Loxx]](https://s3.tradingview.com/g/gKdG39Do_mid.png)
PA-Adaptive Polynomial Regression Fitted Moving Average [Loxx]
![PA-Adaptive Polynomial Regression Fitted Moving Average [Loxx]](https://s3.tradingview.com/x/xj9dbGma_mid.png)
Poly Cycle [Loxx]
![Poly Cycle [Loxx]](https://s3.tradingview.com/y/ywjaMkyI_mid.png)
Fourier Extrapolator of Price w/ Projection Forecast [Loxx]
![Fourier Extrapolator of Price w/ Projection Forecast [Loxx]](https://s3.tradingview.com/u/u0r2gpti_mid.png)
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Public Telegram Group, t.me/algxtrading_public
VIP Membership Info: patreon.com/algxtrading/membership
VIP Membership Info: patreon.com/algxtrading/membership
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Public Telegram Group, t.me/algxtrading_public
VIP Membership Info: patreon.com/algxtrading/membership
VIP Membership Info: patreon.com/algxtrading/membership
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.