Machine Learning: Anchored Gaussian Process Regression
Nov 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.
Trading is risky and many will lose money in connection with trading activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other markets involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools for charting platforms, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content or tool we provide.
Charts used on this site are by TradingView in which the majority of our tools are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com. TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2025 LuxAlgo Global, LLC.