All indicators

Machine Learning: Gaussian Process Regression

By LuxAlgoOct 10, 2023

Machine Learning: Gaussian Process Regression is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Static chart image

Machine Learning: Gaussian Process Regression distills recent price data into a smooth fitted curve and extends it into the future, delivering trend estimation and forecasting in a single plot. It is a Bayesian relative of kernel smoothing, which is why the output reads as a clean line through noise, and why it anchors the library's machine-learning lineup.

How to Trade the Machine Learning: Gaussian Process Regression?

  • Fitted line: condenses the Training Window into a clear local trend, ideal for descriptive analysis and pattern study free of noise.
  • Forecast extension: projects that trend a set number of bars forward; read it as one plausible path forward, not a promise.
  • Lock Forecast (default): the projection stays static, so you can grade it against what actually happened.
  • Update Once Reached: the forecast refreshes when its window completes, staying relevant as price evolves.
  • Continuously Update: recomputes on every bar for traders who want the current read at all times.

Smooth stretches the estimate toward longer-term trends, while lower Sigma values amplify the forecast, with the caveat that amplification can intensify errors, particularly on larger Training Window values.

Machine Learning: Gaussian Process Regression Settings

  • Training Window: the scope of recent price data the model fits.
  • Forecasting Length: the future bar count for the projection.
  • Smooth: the model's smoothness degree; higher values yield more extended, less volatile estimates.
  • Sigma: noise variance controlling sensitivity to outliers and forecast amplitude.
  • Update Mechanism: chooses between Lock Forecast, Update Once Reached, and Continuously Update.

Frequently Asked Questions

Free to use

Run it on Vela. Go further with a paid plan.

  • Up to 500 Custom Alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans

Also works on

TradingView
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.