Download MetaTrader 5

Turn off optimization log?

To add comments, please log in or register
APeng
359
APeng  

Hello!

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
7091
Carl Schreiber  

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?

NOT TESTED!!

$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 $_.name -like "*.log"}
    foreach ($file in $files) {                     # Folder are excluded
       Remove-Item $file.FullName -Force  -ErrorAction SilentlyContinue  
    }
    Start-Sleep -s 60                               # sleep 60 seconds 
}
APeng
359
APeng  
Thanks, I´ll give it a try!
To add comments, please log in or register