Forum

Backtest results incomprehension

Hello fellow traders, I'm running optimizations on an EA I'm currently developing and when I backtest on a 4 years period from 2020.01.01 to 2024.01.01, this is the results I get: And when I backtested it on a 3 years period from 2021.01.01 to 2024.01.01 here are the results I get: I don't

Incomprehensible behavior on OnDeinit when saving objects...

Hello programmer fellows. To preserve the objects on the chart when the settings of my EA or the timeframe is changed, my EA saves the objects on external files on OnDeinit(), and load the objects from the external files on OnInit(). It works just fine when I change the user inputs or recompile for

Objects display issue

Hello there, I'm working on the converting the MT5 version of my EA to MT4 version, and it's not reacting the same on MT4. Basically it's an EA to do manual backtest on the strategy tester. As you know the OnChartEvent() function doesn't work on tester, so instead I'm using the OnTick() function to

Array out of range when converting MLQ5 to MQL4

Hello there, I'm converting the working MT5 version of my EA to MT4, but I get an array out of range error not matter what I try. It's my first time working in MQL4 and I have tried many things but I can't solve the issue so hopefully someone can spot it and advice because I'm running out of idea