Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


D_Oscillator - indicator for MetaTrader 5

Scriptor | English Русский 中文 Español Deutsch 日本語 Português

votes: 14
2018.03.01 11:57

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]


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.

Translated from Russian by MetaQuotes Software Corp.
Original code:

BB-Decimal BB-Decimal

Colored Bollinger Bands

Trend Me Leave Me Trend 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.

GeoMean_MA GeoMean_MA

Geometric Mean Moving Average is a simple moving average calculated by the geometric mean method.

MACD_Divergence MACD_Divergence

The indicator searches for divergences and displays them on the chart of the custom MACD indicator.