Strange behaviour when runing MT5 from command line

 

Hi everyone,

I've created a script in python to run MT5 with a number of different config files and expert parameter files. It basically conduts a Walk forward analysis by first running an optimisation then runs a normal test with the selcted parameter settings. MT5 seems to sporadically crash when running a normal test. The log file looks like this:

CJ      0       11:32:50.138    Core 1  connecting to 127.0.0.1:3000
RK      0       11:32:50.139    Core 1  connected
PQ      0       11:32:50.139    Core 2  connecting to 127.0.0.1:3001
IF      0       11:32:50.139    Core 2  connected
HE      0       11:32:50.139    Core 3  connecting to 127.0.0.1:3002
DQ      0       11:32:50.139    Core 3  connected
HH      0       11:32:50.139    Core 4  connecting to 127.0.0.1:3003
EM      0       11:32:50.140    Core 4  connected
JO      0       11:32:50.140    Core 5  connecting to 127.0.0.1:3004
PH      0       11:32:50.140    Core 5  connected
NS      0       11:32:50.140    Core 6  connecting to 127.0.0.1:3005
GD      0       11:32:50.140    Core 6  connected
FF      0       11:32:50.140    Core 7  connecting to 127.0.0.1:3006
EO      0       11:32:50.141    Core 7  connected
MM      0       11:32:50.141    Core 8  connecting to 127.0.0.1:3007
JJ      0       11:32:50.141    Core 8  connected
HR      0       11:32:50.145    Core 2  authorized (agent build 2981)
IK      0       11:32:50.145    Core 1  authorized (agent build 2981)
RP      0       11:32:50.148    Core 5  authorized (agent build 2981)
OI      0       11:32:50.148    Core 6  authorized (agent build 2981)
PF      0       11:32:50.148    Core 7  authorized (agent build 2981)
RO      0       11:32:50.149    Core 4  authorized (agent build 2981)
ND      0       11:32:50.150    Core 8  authorized (agent build 2981)
CM      0       11:32:50.150    Core 3  authorized (agent build 2981)
GJ      0       11:32:50.159    Core 1  connection closed
FQ      0       11:32:50.177    Core 2  connection closed
DO      0       11:32:50.192    Core 3  connection closed
QJ      0       11:32:50.208    Core 4  connection closed
RP      0       11:32:50.222    Core 5  connection closed
RO      0       11:32:50.238    Core 6  connection closed
QE      0       11:32:50.256    Core 7  connection closed
PP      0       11:32:50.270    Core 8  connection closed
NQ      0       11:32:51.975    Tester  Local network farm switched off
LJ      0       11:32:51.977    Tester  Cloud servers switched off
CN      3       11:32:53.036    Tester  custom group settings applied from file 'MQL5\Profiles\Tester\Groups\ICMarketsSC-Demo_demo.txt'
OQ      0       11:32:53.176    Tester  EURGBP: history data begins from 2005.03.08 00:00
MG      0       11:32:53.313    Tester  automatical testing finished

It seems that the cores are connecting and then just shutting down immediately. I've run  the same thing in debug mode and it worked OK so seems to me to be a timing issue?


Any ideas anyone?