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 | LSMA

A Moving Average calculated by the least squares method.

The indicator has two input parameters:

  • Period - calculation period;
  • Applied price - price used for calculations.

Calculation:

LSMA[i]=Sum/L2

where

Sum[i] = (Period - N)*Price[i] + (Period - N - 1)*Price[i-1] + … + (1 - N)*Price[i-Period+1],  N = (Period + 1)/3,  L2 = Period*(Period + 1)/6  

MetaTrader Experts, Indicators, Scripts and Libraries

20422

Best MetaTrader Indicators + Profitable Expert Advisors