Linear Regression Line Indicator for MT4/MT5

Some traders prefer using linear regression to better understand the status of the current trend in the market. Here you can download free Linear Regression Line indicator for MT4 and MT5.

What Is Linear Regression Line Indicator?

Linear Regression Line Indicator for MT4/MT5

Linear Regression Line indicator for MetaTrader is somewhat similar to a moving average but is a bit different.

Using math formulas from statistics, the indicator automatically creates a line from a linear regression.

Regression line closely follows the price similarly to what a regression channel object in MetaTrader would do.

A regression line is one way of using linear regression in MetaTrader.

Regression Line Indicator in MetaTrader

Why Use Linear Regression Line Indicator?

Linear Regression Line is one of the methods to detect the current market trend. If the line is pointing upwards, it means that there is an uptrend currently in the chart's timeframe. Conversely, if the line is pointing downwards, there is a downtrend.

Usually, the price tends to come back to the line (mean-reversion).

You can see that the line is similar to a moving average, however, it is also different. The line follows the most recent point of the linear regression, so that instead of an average, it follows the price more accurately.

How to Use Regression Line Indicator?

Once you download this indicator, you will be able select how many candles to use for the calculation of the channel and how many of the most recent bars not to consider. Its input parameters are listed in the image below:

MetaTrader Linear Regression Line Indicator - Input Parameters

Download MT4 Linear Regression Line Indicator

You can download both .ex4 (compiled) and .mq4 (source code) of Linear Regression Line indicator using the following link:

➥ Download MQLTA MT4 Regression Following Line

MT4 Installation Instructions

To install the MT4 Trading Session Time indicator, please follow the instructions below:

  1. Download the indicator archive file.
  2. Open the MetaTrader 4 data folder (via File->Open Data Folder).
  3. Open the MQL4 Folder.
  4. Copy all the folders from the archive directly to the MQL4 folder.
  5. Restart MetaTrader 4 or refresh the indicators list by right-clicking the Navigator subwindow of the platform and choosing Refresh.

Or you can read a more detailed instruction on how to perform the installation.

Download MT5 Linear Regression Line Indicator

You can download both .ex5 (compiled) and .mq5 (source code) of Linear Regression Line indicator using the following link:

➥ Download MQLTA MT5 Regression Following Line

MT5 Installation Instructions

To install the MT5 Trading Session Time indicator, please follow the instructions below:

  1. Download the indicator archive file.
  2. Open the MetaTrader 5 data folder (via File->Open Data Folder).
  3. Open the MQL5 Folder.
  4. Copy all the folders from the archive directly to the MQL5 folder.
  5. Restart MetaTrader 5 or refresh the indicators list by right-clicking the Navigator subwindow of the platform and choosing Refresh.

Or you can read a more detailed instruction on how to perform the installation.

© 2005–2021

EarnForex.com

Design — Mart Studio

Forex trading bears intrinsic risks of loss. You must understand that Forex trading, while potentially profitable, can make you lose your money. Never trade with the money that you cannot afford to lose! Trading with leverage can wipe your account even faster.

CFDs are leveraged products and as such loses may be more than the initial invested capital. Trading in CFDs carry a high level of risk thus may not be appropriate for all investors.