Download MetaTrader 5
To add comments, please log in or register
MQL5 Cloud Network speeds up calculations. Try it!
APeng 2014.12.15 10:50 


Every optimization there is that log file created (...\MT4\...\\tester\logs). Is there a way to turn it off? I need to delete it before every new optimization test due there are already done test cycles skipped if I don´t. I export data to csv so I need to run every cycle.

Thanks for any answers!

Carl Schreiber
Carl Schreiber 2014.12.15 15:30  

As others seem to have the same problem:

one of my brokes updated to b765 - may be this version has lost this 'feature'?

Use a powershell script that immediately deletes all the log files in your folder in time?


$path = "C:\Program Files\MetaTrader\tester\logs"   # correct path?
while($true) {                                      # endless loop switch off manually!!
    $files = Get-ChildItem -Path $path |  Where-Object {-not $_.PsIsContainer -and $ -like "*.log"}
    foreach ($file in $files) {                     # Folder are excluded
       Remove-Item $file.FullName -Force  -ErrorAction SilentlyContinue  
    Start-Sleep -s 60                               # sleep 60 seconds 
APeng 2014.12.16 09:37  
Thanks, I´ll give it a try!
To add comments, please log in or register