Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

XROC2_VG - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

XROC2_VG - indicator for MetaTrader 5

Real author: Vladislav Gorshkov (VG)

Plot any two ROC indicators of the same type (including momentum) and period in a single window.

The generated indicators are processed through an averaging algorithm to filter out random noise.

Indicator calculation formula:

 MOM = (price - previous price) [momentum];
ROC = ((price/previous price)-1)*100 [rate of change];
ROCP = (price-prevPrice)/prevPrice [percentage of change];
ROCR = (price/previous price)[rate of change ratio];
ROCR100 = (price/previous price)*100 [rate of change ratio 100 ratio].

Additional averaging is used to filter out random noise and obtain a smoother final indicator. The indicator uses the CJJMA class from the SmoothAlgorithms.mqh library. This class is described in detail in the article Average price series for intermediate calculations without using additional buffers .

The indicator was first implemented in MQL4 and published in the code base on March 28, 2006.

XROC2_VG - indicator for MetaTrader 5

Figure 1. XROC2_VG indicator


Attachment download

📎 SmoothAlgorithms.mqh (130.2 KB)

📎 XROC2_VG.mq5 (19.84 KB)

Source: MQL5 #18456

Verification code Refresh