Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Linear Regression

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

MetaTrader Experts, Indicators, Scripts and Libraries

11898

Best MetaTrader Indicators + Profitable Expert Advisors