Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Stochastic ROC

Price Rate-of-Change (ROC) indicator based on stochastic.

It has eight input parameters:

  • Stochastic K period - the period of calculating the stochastic %K line;
  • Stochastic D period - the period of calculating the stochastic %D line;
  • Stochastic Slowing - the period of calculating the stochastic Slowing line;
  • Stochastic MA Method - stochastic calculation method;
  • Stochastic Price field - stochastic calculation prices;
  • Stochastic line - stochastic line used for calculating the indicator:
    • Main - main line;
    • Signal - signal line.
  • ROC period - the period of calculating the ROC;
  • Calculation type - type of calculations:
    • Absolute - absolute values;
    • Relative - relative values.

The ROC indicator is not required for calculations, since it is calculated by the indicator itself.

Calculations:

If Type = Absolute Stochastic, then ROC = ((Stochastic(Now) - Stochastic(Prev)),  If Type = Relative Stochastic, then ROC = ((Stochastic(Now) - Stochastic(Prev)) / Stochastic(Prev))*100  

ROC:

ROC = ((CLOSE (i) - CLOSE (i - n)) / CLOSE (i - n)) * 100  CLOSE (i) - the price of closing the current bar;  CLOSE (i - n) - the close price n bars ago;  

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1. Stochastic ROC Absolute

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.2. Stochastic ROC Relative

20573

Best MetaTrader Indicators + Profitable Expert Advisors