Linear Regression – indicator MetaTrader 5

Linear regression is a statistical tool used to predict future prices based on past data.

The indicator uses the least squares method for the construction of the “most suitable” straight line through a series of points of price values​​.

As input parameters used the number of bars (candles) to use in the calculation. This indicator is a good for use in Expert Advisors.

Input parameters:

  • input intΒ Β Β Β Β  LRMAPeriod=14; // Period LRMA

Indicator linear regression


πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks