Linear Regression Analysis & Linear Regression Signals
Another name for a regression line is a line of the best fit/best fit line. This indicator plots the trend of the price over a specified duration of time. The market trend is determined by calculating a Linear Regression Trend-line using "least squares fit" method. This method helps to minimize the distance between the price data points and the line of best fit.

Unlike the straight Regression Trend-line indicator, the technical indicator plots the end values of multiple Linear Regression trendlines. Any single point along the Linear Regression will be equal to the end value of a Regression Trendline, but resulting trend-line resembles the MA Moving Average.
But unlike the MA Moving Average, this trading indicator doesn't show as much delay since it's fitting a line onto data points rather than averaging them.
The Linear Regression is a prediction of the tomorrow's trading price drawn today, one day before. When the prices are steadily higher or steadily lower than the forecasted price, then a gold trader can expect them to return quickly to the more realistic fore-casted levels.
In other words, this indicator shows where the chart prices "should" be based on a statistical basis and any dis-proportionate deviation from the regression line is likely to be short lived.
Gold Analysis and How to Generate Signals
This trading indicator allows for the price selection, adjusting number of periods and smoothing out of price info before applying the calculation and the selection of smoothing out type.
This indicator resembles a Moving Average but it has a bi-color representation.
- Bullish Signal (Blue color) - A rising line (greater than its previous value one previous bar before) is displayed in the up-trend blue colour, while
- Bearish Signal (Red colour) - a falling line (lower than its previous value one previous bar before) is displayed in the down-trend red color.

Technical Analysis in Gold
Study More Tutorials and Lessons:
- Which is the Best XAUUSD Trend Reversal Indicator?
- XAU/USD Platform MT5 Placing Arrows in Gold Charts on MT5 Platform Software
- Types of Gold Market Brokers
- MACD XAU/USD Strategy Buy & Sell XAUUSD Signals
- Best Time for Transacting Gold Metal
- How Do I Do XAU/USD Position with Different XAUUSD Chart Time frames?
- What's Technical Analysis Basics?
- How Can I Add Automated Expert Advisor(EA) on your MetaTrader 4 Trade Platform?
- How to Use XAUUSD Sell Limit Order on the MetaTrader 5
- XAU/USD Load XAUUSD Template in MT4 Platform Software


