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 | DEROSC

The Derivative Oscillator indicator by Constance Brown was published in her book "Technical Analysis for the Trading Professional"

The indicator is a twice exponentially smoothed RSI with the default parameters of 5 and 3.
Then a signal line is formed by simple smoothing of the resulting 2ERSI with the period of 9.
The derived histogram is calculated as a difference between 2ERSI and the signal line

There are five inputs:

  • RSI period - period of RSI
  • First EMA period - the period of the first smoothing EMA
  • Second EMA period - the period of the second smoothing EMA
  • SMA period - signal line smoothing period
  • Applied price price used for calculations

Calculation:

DEROSC = EMA2 - SMA(EMA2, SMA period)

where:

EMA2 = EMA(EMA1, Second EMA period) EMA1 = EMA(RSI, First EMA period) RSI - RSI(Applied price, RSI period)

MetaTrader Experts, Indicators, Scripts and Libraries

21825