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

Oscillator VAMA_MACD (Volume Adjusted MA MACD) is an MACD, in which Volume Adjusted Moving Average (VAMA) is used for smoothing. To calculate the VAMA, contract price is used, which is divided by the total volume over a period of time.

The indicator has four configured parameters:

  • Fast MA period - fast MA period for calculating the MACD;
  • Slow MA period - slow MA period for calculating the MACD;
  • Signal line period - MACD signal line calculation period; and
  • Applied price - price used for calculations.

Calculation:

MACD = MAS - MAL  Signal = SMACD / SV  Histogram = MACD - Signal    

where:

MAS = FastSPV / FastSV  MAL = SlowSPV / SlowSV  
  • FastSPV - sum of prices and volumes over the Fast MA period;
  • SlowSPV - sum of prices and volumes over the Slow MA period;
  • FastSV - sum of volumes over the Fast MA period;
  • SlowSV - sum of volumes over the Slow MA period;
  • SMACD - sum of the MACD values and of volumes over the Signal line period;
  • SV - sum of volumes over the Signal line period.

MetaTrader Experts, Indicators, Scripts and Libraries

21045

Best MetaTrader Indicators + Profitable Expert Advisors