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

The indicator represents two moving averages calculated based on the range of one-direction candlesticks.
One MA is for bullish range, the other one is for bearish candlesticks.

It has two configurable parameters:

  • Period - calculation period (candlestick range)
  • Applied price - calculation price

Calculations:

  

UP = SumUp / CountUp

DN = SumDn / CountDn

where:

  

SumUp = Sum of SMA(Applied price, 1) for all bullish candlesticks within the Period

SumDn = Sum of SMA(Applied price, 1) for all bearish candlesticks within the Period

CountUp - number of bullish candlesticks within the Period

CountDn - number of bearish candlesticks within the Period

MetaTrader Experts, Indicators, Scripts and Libraries

21316

Best MetaTrader Indicators + Profitable Expert Advisors