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 | D Oscillator

D-Oscillator is an oscillator based on the RSI and CCI ratio.

Calculation formula

Line1[i] = 2/(Smooth + 1)*StCCI + (1 - 2/(Smooth + 1))*Line1[i-1]

Line2[i] = 2/(Smooth*0.8 + 1)*Line1[i-1] + (1 - 2/(Smooth*0.8 + 1))*Line2[i-1]

where

StCCI = [CCI_Coeff]*CCI[i] + (1 - [CCI_Coeff])*StRSI

StRSI = (RSI[i] - MinRSI)*200/(MaxRSI - MinRSI) - 100

MaxRSI, MinRSI - the maximum/minimum values of RSI between [i-D_Period] and [i].

The indicator has five input parameters:

  • RSI period - RSI calculation period;
  • D-period - the number of bars to search for the maximum/minimum RSI values;
  • CCI period - CCI indicator parameter;
  • CCI coefficient - CCI indicator parameter;
  • Smooth - smoothing.

MetaTrader Experts, Indicators, Scripts and Libraries

19953

Best MetaTrader Indicators + Profitable Expert Advisors