All indicators

Polynomial Regression Extrapolation

By LuxAlgoJun 30, 2022

Static chart image

Polynomial Regression Extrapolation fits a polynomial curve of user-defined degree to recent prices and extends the result into the future, turning a statistical fit into a visible forecast on the chart. Degree 1 recovers the familiar straight regression line; higher degrees let the curve bend with accelerating trends and hint at where they might turn.

How to Trade the Polynomial Regression Extrapolation?

  • Degree 1: a straight line — the cleanest read on linear trend direction.
  • Degree 2: a parabolic fit suited to steadily accelerating moves.
  • Higher degrees (such as 6): capture intricate variation and can flag potential turning points — validate these with caution before acting.
  • Extrapolated segment: the forward portion of the curve is the model's projection; watch how price behaves against it rather than trading it blindly.

As a rule, lower degrees describe the broad trend while higher degrees map detail at the cost of noise — going beyond degree 3 usually adds more of the latter than the former. The fitted curve can also serve as a reference for support or resistance within the trend it describes.

Polynomial Regression Extrapolation Settings

  • Length: how many recent price observations feed the fit.
  • Extrapolate: the forecast horizon — how far forward the curve is projected.
  • Degree: the polynomial degree, the central trade-off between smoothness and detail.
  • Src: the price source being modeled.
  • Lock Fit: freezes the fit so the curve extends to the most recent bar without re-fitting to new prices.

Frequently Asked Questions

Can it predict exact turning points?

No forecast can. Higher-degree fits may highlight areas where a trend could bend, but those projections should be confirmed with other analysis before acting — the extrapolation describes tendency, not certainty.

How does it relate to Linear Regression?

Linear Regression fits a straight line — equivalent to running this tool at degree 1. Raising the degree lets the fit bend with the trend, capturing acceleration a straight line misses, at the price of extra noise in the extrapolation.

How can I start using Polynomial Regression Extrapolation?

It's a free LuxAlgo Library tool — apply it straight from this page, and if you want to experiment with degrees systematically, you can run it in LuxAlgo's AI, Quant, as well.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5
Original indicatorBuilt in-house by LuxAlgo

The Library is free. Quant makes it yours.

Pull any concept or indicator into Quant: rebuild it, retune it, or turn it into a backtested strategy of your own.