BB_MACD_funcs - Library for MetaTrader 4 | MT4 EA Download - MetaTrader 4 Resources
There are 2 functions iBandsfunc and iMACDfunc in this library, which extend the computational capabilities of the corresponding functions, such as expert advisors.
The standard function i-Band only uses the deviation as an integer value and calculates it based on the Simple Moving Average (SMA). In iBandsfunc, you can use the deviation as a moving average of double and other values.
The Standard Functional Moving Average Convergence and Divergence is calculated by the formula:
Signal = SMA(MACD, 9),
Where MACD is calculated only based on the exponential moving average (EMA) and the signal line - the simple moving average (SMA). In iMACDfunc, it is possible to select the moving average of the main line (MACD) and the signal line.
Examples of using these functions can be found in the attachment.
Attachment download
📎 BB_MACD_funcs.mq4 (5.73 KB)
Source: MQL5 #10804
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •