Machine Learning: Anchored Gaussian Process Regression
By LuxAlgoNov 2, 2023
Machine Learning: Anchored Gaussian Process Regression is an innovative indicator based on the traditional Machine Learning: Gaussian Process Regression (GPR). It uses an advanced machine learning method to estimate and forecast underlying trends in financial market prices. By allowing users to define a Training Window through two anchor points, this tool offers a tailored approach to market trend analysis.
Despite its capabilities, it's crucial to note that predicting market trends remains a complex task and should not be the sole basis for trading decisions.
How to Use the Anchored Gaussian Process Regression Indicator?
Begin by adding the indicator to your chart. You'll be asked to select two points on your chart, a starting and an ending one. These points will determine your Training Window.
'Anchor 1' marks the starting point while 'Anchor 2' sets the endpoint. The data between these anchors forms the Training Window, where the Gaussian Process Regression (GPR) is applied.
The blue line represents the GPR fit, while the red line depicts the GPR prediction, based on the data within the Training Window.
Adjustable settings for trend estimation include Smooth and Sigma, giving you control over the indicator's behavior.
The Smooth setting adjusts the estimate's smoothness—higher values yield smoother, longer-term trend estimates.
Sigma affects the forecast amplitude—values near zero increase sensitivity, amplifying the results.
A key advantage of this anchoring approach is the enhanced ability to assess forecast accuracy and understand the impact of different settings.
Moreover, the publication displays a mean average line (faint silver line), reflecting the average price within the Training Window. This serves as a benchmark to gauge how the forecast deviates from the mean.
Indicator Details
Limited Training Window Explained
The Training Window size is restricted due to matrix.new() constraints.
If your chosen points are too distant, the line will terminate at the maximum limit without showing a size error.
The forecasted line in red is prioritized in such a scenario.
Setting Up Anchors
Typically, Anchor 1 is historically further back than Anchor 2. However, swapping them (placing Anchor 2 before Anchor 1) is perfectly functional and won't cause issues.
Configurable Settings
- Anchor 1 / Anchor 2: Define the limits of your Training Window.
- Forecasting Length: Sets how many bars ahead your forecast extends.
- Smooth: Adjusts smoothness of the model fit.
- Sigma: Modifies noise variance, affecting the sensitivity to outliers.
FAQ
How can I access the Anchored Gaussian Process Regression Indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What is the main advantage of using the Anchored GPR?
The primary advantage is its capacity to deliver accurate trend forecasts and customizations, helping traders understand underlying market movements.
Free indicator
Get free access to this indicator on the platforms below.
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.
