A step-by-step guide on how to find and extract log files in your MetaTrader 4
Log files are special purpose text files (with .log extension) where different information, warnings and errors related to Expert Advisor working process are recorded.
Any Expert Advisor should be developed with a logging function that stores all the actions performed by the EA in a log file. Logging function records parameters of trades’ execution and all related errors that may arise, providing information to investigate the reason of a particular trade execution or (in contrary) the reason of a trade being not executed at some particular entry setup.
Log files are used to restore the sequence of actions performed by an EA. Such approach allows to determine reasons of incorrect work of the EA should any issues arise.
There are 3 types of log files recorded in your MT4 terminal:
1. Expert Advisor log files
When your Expert Advisor is launched on a chart and works in real time, all the information that is related to its working process you can watch in “Terminal” window in “Experts” tab.
In this tab there is a data recorded related to the working process of the launched EA: info about EA launch, EA stopping process, trades’ opening/closing, orders’ modification, errors and other important issues.
Expert Advisor log files are located in “MQL4/Logs” folder of your MT4 “Data Folder” directory. To get these log files please follow the actions provided below:
How to get Expert Advisor log files in MT4
2. Terminal log files
In “Terminal” window to the right from “Experts” tab there is “Journal” tab. It contains information about recorded trader and terminal actions after the most recent launch of your MetaTrader 4. In this log the following actions are recorded:
orders’ opening/closing/modification (manual orders as well as orders, opened by an EA)
switching between accounts
connection losses
terminal open and close
EAs/indicators/scripts launch and stop
other terminal system info
Terminal log files are located in ”logs” folder of your MT4 “Data Folder” directory. To get these log files please follow the actions provided below:
How to get Terminal log files in MT4
3. Strategy Tester log files
When your Expert Advisor runs in Strategy Tester, all the information that is related to its working process you can watch in “Tester” window in “Journal” tab. In this tab the EA logs all the data related to the testing process, including all trading operations.
This log is similar to “Terminal – Experts” log except that in Strategy Tester log there is data related to Expert Advisor back-testing rather than to its real time trading.
If an error has occurred during a back-test of an Expert Advisor, then this is the log you need in order to investigate the issue.
Strategy Tester log files are located in ”tester/logs” folder of your MT4 “Data Folder” directory. To get these log files please follow the actions provided below:
How to get Strategy Tester log files in MT4
Please note:
do not change any info in any log file that should be used for an investigation – just send it to your developer as it is
If the size of a log file is large (more than 10MB) – zip it into a .zip archive before sending: zipping a log into an archive significantly reduces the size of the log and makes the transfer of it faster
We use cookies on this website to improve performance. By browsing this website you are agreeing to this. For more information see our Privacy policyCookie settingsACCEPT
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
Your message is sent
Thank you for contacting Nordman Algorithms! We have received your request and will get back to you as soon as possible!
Please note that our working hours are from 05:00 GMT till 15:00 GMT from Monday till Friday and we may not be able to reply outside of our working hours.
If you do not receive a response from us within 24 hours during working days, please check your spam folder.