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 | Volume Weighted MA

Real author:

StatBars TO

The idea of this moving average indicator is in giving the bar with a greater volume a greater weight in averaging. The volumes are summed for the 'Length' period, then the volume of each bar is divided by the sum — this is the weight of each bar.

Products of each price and weight of each price are summed in the final formula.

Originally this indicator has been written in MQL4 and was first published in the Code Base on 14.06.2016.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1. The Volume_Weighted_MA indicator

15836

Best MetaTrader Indicators + Profitable Expert Advisors