MQL4 - automated forex trading   /  

Technical Analysis

Login | Register | Language: ru cn en
Check MetaTrader Market in order to find your Expert Advisor

Technical Analysis  Technical Indicators  Oscillators

Analyze with the

Price Rate of Change

As you know, prices drop and grow in ondulatory way, in cycles. This cyclic movement is a result of change in investors' expectations and the price control fight between bulls and bears.

Price Rate of Change (ROC) reflects this ondulatory movement like an oscillator, measuring the difference in prices in a certain period. ROC grows if prices grow and drops along with them. The more the price change is, the more ROC changes.

12- and 25-day ROC are most widely spread. A 12-day ROC is a perfect short-term and medium-term indicator of overbought/oversold. The higher ROC is, the more probable the rise. However, like in the case of using all other overbought/oversold indicators, you should not hurry to open a position until the market changes its direction (turns up or down). The market that seems to be outbidden can remain so for some time. In general, the state of utmost overbought/oversold usually assumes an extension of the current trend.


Calculation:

You can find the speed of price change as a difference between current closing price and the closing price n periods ago.

ROC = ((CLOSE (i) - CLOSE (i - n)) / CLOSE (i - n)) * 100

Where:
CLOSE (i) — the closing price of the current bar;
CLOSE (i - n) — the closing price n bars ago;
ROC — the value of Price Rate of Change indicator.


Source Code

Full MQL4 source of Moving Average of Oscillator is available in the Book: Price Rate of Change
Warning: All rights on these materials are reserved by MetaQuotes Software Corp. Copying or reprinting of these materials in whole or in part is prohibited.