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

McClellan_Summation_Index - indicator for MetaTrader 5

Views:
3165
Rating:
(8)
Published:
2018.06.16 10:58
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The Summation Index oscillator based on indicator McClellan_Oscillator that, in its turn, is based on the values of McClellan's indicator RANA shows the values of McClellan_Oscillator, considering the values of the previous day.

It has three input parameters:

  • Base currency - name of the base currency of symbols in the Market Watch for calculating the RANA.
  • Fast MA period - fast MA period (19 by default);
  • Slow MA period - slow MA period (19 by default).

Calculations:

McClellan Summation Index = McClellan Oscillator + McClellan Summation Index of the previous day

where:

McClellan Oscillator = (MA(RANA(19)) - MA(RANA(39))) * (Fast MA period + Slow MA period)
  • MA(RANA(19)) - 19-day MA based on RANA;
  • MA(RANA(39)) - 39-day MA based on RANA.
RANA = (Up - Dn)/(Up + Dn)
  • Up - number of bullish candlesticks on all symbols;
  • Dn - number of bearish candlesticks for all symbols.

It should be noted that, at the first launch or at switching the timeframe, the indicator will need some time to download the necessary history for all the symbols required.

Indicator RANA is not required for operation - it is calculated by the indicator independently.

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

AD_Indicator AD_Indicator

Sherman and Marian McClellan Advances/Declines Indicator.

McClellan_Oscillator McClellan_Oscillator

Sherman and Marian McClellan Oscillator.

Average Modified Moving Average Average Modified Moving Average

Average Modified Moving Average.

Coppock Coppock

The Coppock Indicator of Bullish Signals.