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

SlotAvailableRole
Entry PointNo—
Entry RuleYesFilters entries: allows or denies opening a position.
Exit PointNo—
Exit RuleYesTriggers 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:

RuleLong signal is 1 whenShort signal is 1 when
ROC risesROC rose on the previous barROC fell on the previous bar
ROC fallsROC fell on the previous barROC rose on the previous bar
ROC is higher than the Level lineROC is above the LevelROC is below −Level
ROC is lower than the Level lineROC is below the LevelROC is above −Level
ROC crosses the Level line upwardROC crossed above the Level from belowROC crossed below −Level from above
ROC crosses the Level line downwardROC crossed below the Level from aboveROC crossed above −Level from below
ROC changes its direction upwardROC formed a valleyROC formed a peak
ROC changes its direction downwardROC formed a peakROC 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

ParameterTypeDefaultRangePurpose
Apply toselectCloseOpen, High, Low, Close, Median, Typical, WeightedPrice series the ROC is calculated from
Periodnumber142 to 1000Bars between the two compared prices
Levelnumber0−100 to 100Long 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).