MetaTrader 4 tutorial

How to Read the MT4 Experts and Journal Logs

MetaTrader 4 records what every EA does and every platform event. Learn where those logs are, how to read them, and what to send a developer when you need help.

Beginner About 10 min(estimate) 6 stepsPublished

Times are estimates — they vary with your computer, connection and experience.

Before you start

  • MetaTrader 4 with an Expert Advisor attached to a chart.

What you'll learn

  • Tell the Experts log and the Journal apart.
  • Find error lines and their codes.
  • Open the log files on disk and share the relevant part.

Steps

  1. Step 1: Open the Terminal window

    Press Ctrl+T (or View → Terminal). The tabs along its bottom edge include Experts and Journal.

  2. Step 2: Read the Experts tab

    Experts shows messages from EAs and indicators: when they load or are removed, anything their code prints, and errors such as a rejected order. Each line has a time, the program's name and the symbol and timeframe it runs on.

  3. Step 3: Read the Journal tab

    Journal shows platform events: logging in, connection lost or restored, orders sent and the broker's response. If an EA "did nothing", the Journal shows whether an order ever reached the broker.

  4. Step 4: Look for error codes

    Errors are usually reported with a number. Common ones in MT4:

    • 4109 — trading not allowed (AutoTrading or Allow live trading is off).
    • 130 — invalid stops (stop-loss/take-profit too close or on the wrong side).
    • 131 — invalid trade volume.
    • 134 — not enough money (free margin).
  5. Step 5: Open the log files on disk

    Right-click inside the Experts or Journal tab and choose Open. This opens the folder with the day's log files, named by date (for example 20261014.log) — the Journal's in the data folder's logs folder and the Experts log in MQL4\Logs.

  6. Step 6: Share the right lines

    When asking a developer for help, copy the lines from a few minutes before and after the problem, plus your MT4 build number (Help → About) and your broker. On FXBotHub, send them with Contact seller on the product page.

    Log lines can include your account number. Remove anything you don't want to share before sending them.

Expected result

You can find your EA's latest messages in the Experts tab, see whether orders reached the broker in the Journal, and open the matching log file for the day.

Troubleshooting

The Experts tab is empty
No EA has printed anything yet, or none is attached. Re-attach the EA and watch for its load message.
Too many lines to read
Right-click the tab and use the option to clear the view (the file on disk is kept), then reproduce the problem so only new lines appear.

Official documentation

Next tutorial

How to Troubleshoot an EA That Isn't Trading

Work through the checks that fix most idle Expert Advisors in MT4 and MT5: permissions, market hours, the logs, broker rejections, filters and inputs.

Continue

Related tutorials

All tutorials
  • MetaTrader 4Beginner

    How to Install an Expert Advisor in MT4

    Install an Expert Advisor in MetaTrader 4: copy the .ex4 to MQL4\Experts, attach it to a chart, tick Allow live trading and switch on AutoTrading.

    About 10 min(estimate) 7 steps
  • Forex Bots & EAsIntermediate

    How to Configure Expert Advisor Settings

    Configure an Expert Advisor's inputs in MT4 or MT5: lot size and risk, stop-loss units, magic numbers and spread limits, plus saving and loading .set files.

    About 20 min(estimate) 7 steps