Forum

Bug? MQLInfoInteger(MQL_OPTIMIZATION) appears not to be working

I run an EA in the Strategy Tester in Optimization Mode. From OnTesterPass() I open a CSV file, that should have a different name depending on whether it's the Optimisation phase or Forward phase. I use MQLInfoInterger() to find this out. But even though OnTesterPass could only be triggered when

Bug report: Error when running multiple MT5 terminals

I have a high spec dedicated server with plenty of free CPU and RAM. When I run 10 MT5 terminals it works ok. But when I start the 11th terminal it goes very wrong. And this doesn't just affect the 11th MT5 terminal, but the whole of Windows, for example, if I right click on the task bar there is no

MT5 incredibly slow on Windows Server 2019

I am renting two dedicated servers from the same host. The lower spec machine is: Xeon E3-1220 with 16GB RAM . The OS is Windows Server 2016 Standard . The higher spec machine is: Dual Intel Xeon E5-2670 with 64GB RAM . The OS is Windows Server 2019 Standard . On the lower spec machine, MT5 runs

MQL5: Programatically pause/unpause backtest, or slow down / increase speed

My MT5 EA is creating a file that will be read by an external system, and then that system creates a response file that my EA reads. This process happens once per M1 bar and takes about 1-2 seconds, so when running live, timewise there is plenty of margin. The problem occurs when running a backtest

Invalid MQL4 functions in MQL5

I have noticed that in the MQL5 code editor, you have the MQL4 functions iTime, iClose, iHigh etc. They are marked as system functions, their inputs pop up when you type them and they are accepted by the compiler. But they don't work. According to the documentation none of those things are supposed