iACfunc, iAOfunc and iBearsBullsfuncs
In this library you will find 3 custom functions: iACfunc, iAOfunc and iBearsBullsfuncs, which extend calculating capabilities of the appropriate functions and may be used for example in expert advisers.
In contrast to standard function the proposed function iACfunc allows to calculate value with possibility to choose , and periods according to the following formulas:
double iACfunc (string Sy, int Tf, int MA_mode, int Applied_price, int Period_1, int Period_2, int Period_3, int Shift)
In contrast to standard function the proposed function iAOfunc allows to calculate value with possibility to choose , and periods according to the following formula:
double iAOfunc (string Sy, int Tf, int MA_mode, int Applied_price, int Period_1, int Period_2, int Shift)
In contrast to standard functions and the proposed function iBearsBullsfuncs allows to calculate values with possibility to choose also according to the following formulas:
double iBearsPowerfunc (string Sy, int Tf, int BearsPeriod, int Applied_price, int Bears_MA_mode, int Shift)
double iBullsPowerfunc (string Sy, int Tf, int BullsPeriod, int Applied_price, int Bulls_MA_mode, int Shift)
Input parameters:
-
Sy - symbol,
-
Tf - timeframe,
-
MA_mode, Bears_MA_mode, Bulls_MA_mode - moving average,
-
Applied_price - applied price,
- Period_1, Period_2, Period_3, BearsPeriod, BullsPeriod - period for calculation of appropriate moving average,
- Shift - index of the value taken from the indicator buffer.
More detailed description of parameters with examples you will find in the attached zip file.