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

The Moving Average with step indicator.

It has two input parameters:

  • Period - calculation period
  • Step - step size

The calculation is similar to a Simple Moving Average. However, some prices are excluded from the calculations in accordance with the step size.

If parameters are set to Period = 4 and Step = 2, the calculation will be as follows:

StepMA = (Close[i] + Close[i+2] + Close[i+4] + Close[i+6]) / 4.0

If Step = 1, the indicator is identical to a simple moving average.

MetaTrader Experts, Indicators, Scripts and Libraries

Moving Average with step. Period = 4, Step = 2

22947