Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

IncMACDOnArray - MetaTrader 5 Library | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

IncMACDOnArray - library for MetaTrader 5

The CMACDOnArray class is designed for calculating values ​​on the Moving Average Convergence Divergence (MACD ) indicator buffer.

Call the init() method with the following parameters for the OnInit() function:

Call the Solve() method OnCalculate() function with the following parameters:

Test_MACDOnArray.mq5 is a sample indicator showing CMACDOnArray class application. IncMACDOnArray file must be placed in MQL5\Include\IncOnArray in the terminal data folder (IncOnArray folder must be created).

The CMAOnArray class in the IncMAOnArray file is required to work properly. Can be found here .

Moving Average Convergence/Divergence (MACD) is the next trend following dynamic indicator. It represents the correlation between two moving averages of one price.

IncMACDOnArray - library for MetaTrader 5


Attachment download

📎 incmaonarray.mqh (5.07 KB)

📎 incmacdonarray.mqh (4.32 KB)

📎 test_macdonarray.mq5 (3.21 KB)

Source: MQL5 #627

Verification code Refresh