Rate of Change
The Rate of Change is the percentage difference between the current price and the price Period bars ago. It is centred on zero: above zero the price is higher than it was, below zero lower. The value is the same number Momentum reports, minus 100.
Role in the strategy
| Slot | Available | Role |
|---|---|---|
| Entry Point | No | — |
| Entry Rule | Yes | Filters entries: allows or denies opening a position. |
| Exit Point | No | — |
| Exit Rule | Yes | Triggers exits: allows or denies closing a position. |
The ROC produces conditions, not order prices: as an entry rule it is ANDed with the entry point and the other entry rules, as an exit rule it is ORed with the other exit rules. See Indicators for the slot semantics.
Logic rules
The ROC offers the standard oscillator rule set:
| Rule | Long signal is 1 when | Short signal is 1 when |
|---|---|---|
| ROC rises | ROC rose on the previous bar | ROC fell on the previous bar |
| ROC falls | ROC fell on the previous bar | ROC rose on the previous bar |
| ROC is higher than the Level line | ROC is above the Level | ROC is below −Level |
| ROC is lower than the Level line | ROC is below the Level | ROC is above −Level |
| ROC crosses the Level line upward | ROC crossed above the Level from below | ROC crossed below −Level from above |
| ROC crosses the Level line downward | ROC crossed below the Level from above | ROC crossed above −Level from below |
| ROC changes its direction upward | ROC formed a valley | ROC formed a peak |
| ROC changes its direction downward | ROC formed a peak | ROC formed a valley |
The long threshold is the Level parameter; the short threshold is its mirror around zero, −Level. With the default Level of 0 the rules compare with the zero line — the natural boundary for a percentage change — so "ROC is higher than the Level line" reads "the price is above where it was Period bars ago".
Parameters
| Parameter | Type | Default | Range | Purpose |
|---|---|---|---|---|
| Apply to | select | Close | Open, High, Low, Close, Median, Typical, Weighted | Price series the ROC is calculated from |
| Period | number | 14 | 2 to 1000 | Bars between the two compared prices |
| Level | number | 0 | −100 to 100 | Long threshold; the short threshold is −Level |
Calculation
ROC = 100 * (price[bar] − price[bar − period]) / price[bar − period], the percent form of the change. Because MetaTrader's iMomentum is 100 * price[bar] / price[bar − period], the same line is iMomentum − 100, which is how the exported expert advisor reads it.
The result is drawn as a histogram in its own pane below the price chart (separatedChart).
Backtesting
- The rule is evaluated on the previous (closed) bar; the signal applies to the current bar.
- Comparisons use the standard dead zone (
SIGMA = 0.000001). - The ROC never changes the entry or exit order price; the level comes from the point indicator.
- This is not the same indicator as Momentum: the two share the ratio, not the origin, so the Level of one is not the Level of the other (100 against 0).
Related
- Momentum — the same ratio, centred on 100
- Moving Average of Oscillator
- Indicators index