Time in strategy tester and toggling trading status from an EA

 

I have two questions:

1. Is it possible to programmatically control allowing trades?

2. In strategy tester, is it possible to select exact starting time of testing?

Thanks.

 
  1. I've read of 2 solutions, one is use a global variable that all EAs must check periodically, and two is use a Dll to post a command to the AutoTrading button.
  2. The one solution I've read about so far is a call to some Dll, I don't know how exactly, via kernel32.dll.
  3. Use Google: https://www.mql5.com/en/forum/132617
Actual Computer Time During Testing
Actual Computer Time During Testing
  • 2011.03.25
  • www.mql5.com
Im trying to find a way to get the actual realtime computer time while testing...