iACfunc, iAOfunc and iBearsBullsfuncs - MetaTrader 4 Library
In this library you will find 3 custom functions: iACfunc, iAOfunc and iBearsBullsfuncs, which extend the calculation capabilities of the corresponding functions and can be used in Expert Advisor.
In contrast to the standard functions, the function iACfunc proposed by Bjarke allows the calculation of selectable values of price , moving average and period according to the following formula:
AO = MA_mode (application price, period_1) - MA_mode (application price, period_2)
AC = AO - MA_mode(AO, Period_3)
double iAC function ( string_west , integer_treff , integer_ma_mode , integer_application_price , integer_period_1 , integer_period_2 , integer_period_3 , integer_shift )
Comparing with the standard function iAO this proposed function iAOfunc allows to calculate values and optionally price , moving average and period according to the following formula:
AO = MA_mode (application price, period_1) - MA_mode (application price, period_2)
double iAO function ( string_west , integer_treff , integer_ma_mode , integer_application_price , integer_period_1 , integer_period_2 , integer_shift )
Comparison with standard functions iBearsBullsFuncs and iBullsPower suggested function iBearsBullsfuncs allows calculation of values and also the option of moving averages according to the following formula:
BEARS = LOW - Bears_MA _mode (Applied_price, BearsPeriod)
BULLS = HIGH - Bulls_MA _mode (Applied_price, BullsPeriod)
Double iBearsPowerFunc ( string_west , integer_tver , integer_bear_period , integer_application_price , integer_bears_ma_mode , integer_shift )
Double the iBullsPowerfunc function ( string_west , integer_teff , integer_bulls_period , integer_application_price , integer_bulls_ma_mode , integer_shift )
Input parameters:
You can find more detailed parameter descriptions and examples in the attached zip file.
Attachment download
📎 iACfunc.mq4 (2.52 KB)
📎 iAOfunc.mq4 (2.15 KB)
📎 iBearsBullsfuncs.mq4 (3.04 KB)
Source: MQL5 #10834
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •