How to get log files in MT4


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:

find metatrader 4 log files
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:

get log files mt4
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 log files mt4
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
NORDMAN ALGORITHMS

TRADING SOFTWARE DEVELOPMENT

With financial background, using excellent programming techniques, developing automated trading systems of a splendid quality that serve your investing purpose.

CONTACT INFO

Mon - Fri : 08:00 - 18:00 EEST

[email protected]

11412, Majaka str. 26, HarjuCounty, Tallinn, Estonia

RISK DISCLOSURE

Trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results.

Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

Please note, that testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.