BB_MACD_funcs – library MetaTrader 4

In this library there are 2 functions iBandsfunc and iMACDfunc, which extend calculating capabilities of the appropriate functions, e.g. for expert advisers.

The standard function iBands is calculated by using the deviation only as an integer value and on the basis of a simple moving average (SMA). In iBandsfunc it is possible to use deviation as a double value and other moving averages.

The standard function iMACD is calculated by formulas:

MACD = EMA(CLOSE, 12) – EMA(CLOSE, 26)

SIGNAL = SMA(MACD, 9),

where MACD is calculated on the basis only of the exponential moving average (EMA), and the signal line – a simple moving average (SMA). In iMACDfunc it is possible to choose a moving average for main (MACD) and signal line.

Examples of the use these functions can be found in the attached file.

Alternative:  RJTX_Matches_Smoothed_Alert_xx - indicator MetaTrader 5


πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks