Forum

Issue with Reading MACD Histogram – Error 4806 in Strategy Tester / Problem z odczytem danych histogramu MACD – błąd 4806 w testerze strategii

Hello, I'm working on a simple Expert Advisor (EA) in MQL5 that uses the MACD indicator on the M5 timeframe. The code relies on iMACD() and CopyBuffer() to retrieve the histogram values (buffer index 2 ). Even though the code compiles correctly and the handle is successfully created, during strategy