Running Strategy Tester from Batch File - page 2

 
Stanislav Korotky #:

If by "running it by shell cmd" you mean the python script, then read manuals for python's subprocess module on how to show default windows for Windows apps.

Hello  Stanislav, thanks for replying.

if you mean showing the terminal window at the top of other apps, I should say that I don't mind if it runs in the background as long as it works fine. 

I am invoking the python script via PHP with admin privilege and when I check task-manager I can see that the terminal is running by Administrator, but I am facing this strange issue where sometimes everything works fine as expected (terminal will open on background and perform the backtest then will save the report) and sometimes it won't save the report. However I can see on the task-manager that the terminal uses the resource. 


Can you please help me to address the problem causing this?


**Note:

I am using the same EA, same backtesting settings/inputs, same symbol, same terminal

Stanislav Korotky
Stanislav Korotky
  • 2024.09.20
  • www.mql5.com
Trader's profile
 
Stanislav Korotky #:

If by "running it by shell cmd" you mean the python script, then read manuals for python's subprocess module on how to show default windows for Windows apps.

I'm stuck with this problem for more than a week now! 
Can you please help me to find a workaround 
 
wekall #:

I am invoking the python script via PHP with admin privilege and when I check task-manager I can see that the terminal is running by Administrator, but I am facing this strange issue where sometimes everything works fine as expected (terminal will open on background and perform the backtest then will save the report) and sometimes it won't save the report. However I can see on the task-manager that the terminal uses the resource. 


This sounds a bit overcomplicated for Windows. I'd suggest to create a test case with windows shell and see if it works consistently. Then the problem is in your "shells" - python+PHP.

Actually, there is a time-tested solution for tester automation from fxsaber. It's better to switch to it.

Running Strategy Tester from Batch File - I'm trying to find out why I am trying to launch MetaTrader 5 using a batch file and then loading a custom ini
Running Strategy Tester from Batch File - I'm trying to find out why I am trying to launch MetaTrader 5 using a batch file and then loading a custom ini
  • 2023.11.11
  • Kingston86
  • www.mql5.com
I am trying to launch metatrader 5 using a batch file and then loading a custom ini file that i have created using the information on the page. I seem to have narrowed down the problem to the fact that metatrader 5 is clearly seeing the ini file in the fact that it is populating the settings tab as per my above screenshot but it doesn t seem to be loading in the custom
 
Thank you so much for the suggestion. I'm gonna try it and will let you know how it goes.

Best regards