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

ROC2 VG - MetaTrader 4 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

ROC2 VG - indicator for MetaTrader 4

Plots the ROC indicator of two custom types (including momentum) and periods in one window.

ROC2 VG - indicator for MetaTrader 4

The following is a table of change rates implemented in TA-LIB:

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]

Here are the equivalent functions in other software:

TA-Lib | Trading Post | Metastock

Mom | Momentum | Republic of China (dot)

Republic of China | Republic of China | ROC (Percent)

Roop | Percent change | -

Rockery | - | -

ROCR100 | - | Mo

The MOM function is the only function that is not standardized, so

Comparing prices from different time series should be avoided.

ROC and ROCP are centered on zero and can have positive and negative values

value. Here are some equivalence relationships:

= ((price-previous price)/previous price)/100

= ((price/previous price)-1)*100


Attachment download

📎ROC2_VG.mq4 (4.11 KB)

Source: MQL5 #8128

Verification code Refresh