Running optimisation using command line to open MT5

 

Hi everyone,


I have written a script in python to run MT5 in optimisation mode. It appears to be working some of the time but sometimes it launches MT5 and starts to run the optimisation but finishes almost immediately, I'm guessing crashing out. The error doesn't seem to be consistent as when I load MT5 manually and use the same config files etc it works. 

I was thinking it might be a timing issue where it's trying to run before required things are still loading?

Has anyone else had a similar problem?


Cheers

E