D-Oscillator is an oscillator based on the RSI and CCI ratio.
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]
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:
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/19953
Colored Bollinger BandsTrend Me Leave Me
The EA trades using the signals of iADX (Average Directional Movement Index, ADX) and iSAR (Parabolic SAR) indicators. The profit/loss of the last closed position is taken into account. Positions are moved to breakeven.