Download MetaTrader 5
To add comments, please log in or register
Having questions? Ask them on the Forum - traders will help you!
Automated-Trading 2013.12.24 08:21 


The linear regression line with data placed in the indicator buffer.

The LinearRegressionLine indicator

Author: Nikolay Kositsin

Josip Istuk
Josip Istuk 2014.01.14 14:16  
How to use this? What i need do, to draw this in my chart?
Sergey Golubev
Sergey Golubev 2014.01.14 19:05  
Download this indicator, place it in indicators' folder (for example - to C:\Program Files\MetaTrader 5\MQL5\Indicators ... it may be the other place depends on your Windows), and attach this indicator to the chart.
Sergey Golubev
Sergey Golubev 2014.01.14 19:10  
Linear Regression Line

A Linear Regression Line is a straight line that best fits the prices between a starting price point and an ending price point. A "best fit" means that a line is constructed where there is the least amount of space between the price points and the actual Linear Regression Line.

The Linear Regression Line is mainly used to determine trend direction. A chart of AT&T (T) stock is given below:

Traders usually view the Linear Regression Line as the fair value price for the future, stock, or forex currency pair. When prices deviate above or below, traders expect prices to go back towards the Linear Regression Line.

As a consequence, when prices are below the Linear Regression Line, this could be viewed as a good time to buy, and when prices are above the Linear Regression Line, a trader might sell. Of course other technical indicators would be used to confirm these inexact buy and sell signals.

A useful technical analysis charting indicator that uses a Linear Regression Line is the Linear Regression Channel (see: Linear Regression Channel), which gives more objective buy and sell signals based on price volatility.

To add comments, please log in or register