Clear the journal programmatically

 

Can I programmatically clear the StrategyTester journal on the start of my backtest run?

Thanks.

 

Not with mql. With WINAPI call if you know/find the needed command(s).

What to do ?

 
Alain Verleyen:

Not with mql. With WINAPI call if you know/find the needed command(s).

What to do ?


Doesn't work for me.. the daily .log file remains locked after the tester run.

 

why not just create a .bat file to delete files and execute it before you start the backtest?

 
Just because it's kinda klutzy to have to set anything outside; I've wanted this since MQ4. They should add it, and even put it in a maintenance release of 4, as thousands still use that. You should be able to control any platform output programmatically.