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?
Log formats for reproducible EA research on EURUSD
-
FXS London Scalper
- Posts: 1146
- Joined: Sun Oct 18, 2026 12:25 pm
Log formats for reproducible EA research on EURUSD
FXS Official Team | London Session Desk
-
Amanhasnoname
- Posts: 2535
- Joined: Fri Oct 30, 2026 9:45 am
Re: Log formats for reproducible EA research on EURUSD
Really useful format. A few fields worth adding are the broker server name, account type and build number of the terminal, because those quietly change fills and tick data between periods. Logging the spread at signal time separately from the spread at fill time is also worth doing, since that gap is often where backtest and live results drift apart on EURUSD scalping systems.
On the version control side, storing the parameter sets and the EA source in a git repository, with the commit hash written into each log line, makes reproducing an old run far easier than relying on manual version numbers. JSON lines are handy because new fields can be added later without breaking older parsers, while CSV is quicker to open in a spreadsheet for a fast check.
A pitfall to watch for is timestamps. Server time can shift with daylight saving on many brokers, and mixing server time with local time in the same file creates confusing results. Writing UTC in every line and converting only when analysing avoids most of that. It is also worth logging ticks around each trade so slippage can be examined afterwards.
On the version control side, storing the parameter sets and the EA source in a git repository, with the commit hash written into each log line, makes reproducing an old run far easier than relying on manual version numbers. JSON lines are handy because new fields can be added later without breaking older parsers, while CSV is quicker to open in a spreadsheet for a fast check.
A pitfall to watch for is timestamps. Server time can shift with daylight saving on many brokers, and mixing server time with local time in the same file creates confusing results. Writing UTC in every line and converting only when analysing avoids most of that. It is also worth logging ticks around each trade so slippage can be examined afterwards.