Does this help? From Copilot (chatGPT)...
It sounds like your friend’s custom MT5 code used to reliably write to the log file via Print(), but after a recent update, the log location may have changed or the behavior of logging might have shifted slightly.
Here’s how to track down the new log file location and ensure the output is still being captured:
Where MT5 Stores Log Files Now
There are two main types of logs in MT5:
- Platform Logs
- These are stored in:
...\MetaTrader 5\Logs\ - They capture general platform activity, including terminal startup, network events, and trade operations.
- Expert Logs (EA/Script Output like Print())
- These are stored in:
...\MetaTrader 5\MQL5\Logs\ - This is where your Print(cmt); output should appear.
To locate them: - Open MT5.
- Go to File → Open Data Folder.
- Navigate to:
- MQL5\Logs for EA/script logs.
- Logs for platform logs.
Each log file is named by date: YYYYMMDD.log.
️ If Nothing Is Showing Up
If your friend’s Print() output isn’t appearing: - Check the Experts tab in the MT5 terminal (bottom panel). If the EA is running, output should appear there live.
- Make sure the EA is attached and running—if it’s not triggered, no logs will be written.
- Confirm that logging is enabled in MT5 settings (some updates may reset preferences).
- If the EA is compiled in Release mode, some debug output might be suppressed. Try compiling in Debug mode.
If your friend wants to make the output more persistent or structured, I can help them write to a custom file using FileOpen() and FileWrite() instead of relying solely on Print(). Want to go that route?


