Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

D_Oscillator - indicator for MetaTrader 5

Views:
4126
Rating:
(15)
Published:
2018.03.01 11:57
D_Oscillator.mq5 (10.83 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/19953

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.