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:
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.