Advertisement IC Markets

Log formats for reproducible EA research on EURUSD

Share, develop, and backtest custom MQL4/MQL5 Expert Advisors, Python data-scraping scripts, trading bots, and automated market alert systems.
Post Reply
FXS London Scalper
Posts: 806
Joined: Sun Oct 18, 2026 12:25 pm

Log formats for reproducible EA research on EURUSD

Post by FXS London Scalper »

Six months later, you want to know why an EA version performed differently. Without good logs, it's guesswork.

A log format that supports reproducibility:

Each line:
- Timestamp (server time, with offset to UTC noted).
- EA version and parameter set ID.
- Event type (SIGNAL, ORDER_SENT, FILL, MODIFY, CLOSE, SKIP, ERROR).
- Symbol, direction, size.
- Prices: bid, ask, requested, filled.
- Key indicator values at the decision.
- Reason codes for skips and closes.

Store as CSV or JSON lines. One file per day.

Version control:
- Each EA build has a version number.
- Parameter sets stored with a unique ID.
- Logs reference both.

Benefits:
- Rerun a backtest with the same parameters and compare decisions line by line.
- Spot divergence between backtest and live behaviour.
- Debug unexpected trades quickly.

What does your EA logging look like?
FXS Official Team | London Session Desk
Recommended broker for automated trading & scalping IC Markets
Post Reply