Tool to delete temporary metatrader logs

To add comments, please log in or register
Lee Bryant
1187
Lee Bryant  

Hi everyone,

I am sure anyone who has used MT4 often especially to do long backtests knows how big the log files can get ! I have coded a batch file which deletes the biggest files from MT4 (you need to close the program first) thought I would share it...

Just place it in your metatrader folder and press 'y' when it prompts if you want to delete. This can clear gigabytes from your drive !!

Files:
Linuxser
5921
Linuxser  

Thanks leeb.

Moved to Tools section.

David SWINKA
614
David SWINKA  

many thanks !

Very useful and great idea !

Hercs
2970
Hercs  
leeb:
Hi everyone,

I am sure anyone who has used MT4 often especially to do long backtests knows how big the log files can get ! I have coded a batch file which deletes the biggest files from MT4 (you need to close the program first) thought I would share it...

Just place it in your metatrader folder and press 'y' when it prompts if you want to delete. This can clear gigabytes from your drive !!

Thanks Leeb, but into which MT folder do we place it? Logs? (there are 2) or indicators?

Thank you for replying.

Ovidiu Marius
610
Ovidiu Marius  

In main folder of MT4 (C://Metatrader4 for example)

Lee Bryant
1187
Lee Bryant  

Where to place the file

Hi everyone, glad you like this little tool.

ValeoFX: Thanks for your great posts on this forum, yes as enforcer says it should be in your main metatrader folder eg: c:\program files\metatrader 4

Just by running the batch yesterday I freed up about 20GB from one folder

Sf3JpNkPy8
85
Sf3JpNkPy8  

Saver Deleting Tool

Hi leeb,

good idea your Tool to delete temporary metatrader logs.

But as a system administrator i must say it's with the command "del *.*" too dangerous for normal users in case of accidental erasure!

Think the version i posted below is saver.

It deletes only all log-files in ...\experts\logs-folder, only all log-files with the actual date in ...\logs-folder, only all fxt-files in ...\tester\history-folder and only all log-files in ...\tester\logs-folder.

Use it every day bevor shutdown your system.

Thank you

Files:
Hercs
2970
Hercs  
leeb:
Hi everyone, glad you like this little tool.

ValeoFX: Thanks for your great posts on this forum, yes as enforcer says it should be in your main metatrader folder eg: c:\program files\metatrader 4

Just by running the batch yesterday I freed up about 20GB from one folder

Thanks Leeb, I also have much respect for you and your contributions, for which I thank you.

Best wishes for a Blessed Easter.

Lee Bryant
1187
Lee Bryant  

Thanks ValeoFX, happy Easter to you and all other contributors to this great forum :-)

Beppi - thanks for your addition, yes I work in IT too so agree that the system could be improved, it is for more advanced or careful users but your method is great.

Patrick
40
Patrick  

Cleanup MT4 Log files

Just created this application to easily delete log files.

Sometimes ( usually when I have a bug in my EA ) my log files fill up my hard drive and because I use so many different platform it is a pain to clean up ...

The app is free and you can download the setup file from the following page:

MT4 MSFX-Cleaner | Mistigri

Note that your .NET framework has to be up to date ... Run your "windows update" if you're not sure ...

Let me know what you think!

Patrick

d4v3
25
d4v3  

Thanks

Mistigri

Thanks for this great application.

I only wish I had found it earlier, because after debugging, testing and optimising one of my EA's the MT4 log file got to 20 Gb, and totally filled my C drive, crashed windows and corrupted all my restore points all through lack of disk space. After reinstalling Windows, I plan to schedule this to run every day.

Thanks

d4v3

123
To add comments, please log in or register