Author: Vladislav Goshkov (VG)
If you're looking to enhance your trading strategy, the XROC2_VG indicator for MetaTrader 5 might just be the tool you need. This powerful indicator plots Rate of Change (ROC) indicators of two similar types, including Momentum, all within a single window.
The beauty of the XROC2_VG lies in its ability to smooth out the noise in market data. Using an averaging algorithm, it processes the raw data to give you clearer signals for your trading decisions.
Understanding the Calculations
Here’s a quick breakdown of the calculations behind the indicator:
MOM = (price - prevPrice) [Momentum];
ROC = ((price/prevPrice)-1)*100 [Rate of Change];
ROCP = (price-prevPrice)/prevPrice [Rate of Change Percentage];
ROCR = (price/prevPrice) [Rate of Change Ratio];
ROCR100 = (price/prevPrice)*100 [Rate of Change Ratio 100 Scale];
As you can see, these formulas help derive valuable insights into market movements, essential for making informed trading decisions.
Smoothing Out the Noise
To further enhance accuracy, the indicator incorporates additional averaging to filter out random fluctuations. It utilizes the CJJMA class from the SmoothAlgorithms.mqh library, which is detailed in the article Averaging Price Series for Intermediate Calculations Without Using Additional Buffers.
This indicator was originally developed in MQL4 and made its debut in the Code Base on March 28, 2006. It has since evolved, proving its worth in the trading community.

Fig. 1. The XROC2_VG indicator
Related Posts
- Mastering the Open Range Breakout Indicator for MetaTrader 5
- Unlock Market Insights with the XROC2_VG_HTF Indicator for MetaTrader 5
- Unlocking the ROC2_VG_HTF Indicator for MetaTrader 5
- Unlock Trading Insights with Volume Profile + Range v6.0 for MetaTrader 5
- ID Lite Info MA: A Comprehensive Indicator for MetaTrader 5