Logging Trades From an EA: What to Record
Posted: Fri Oct 09, 2026 3:25 pm
Good logs make it possible to understand what an EA did and why. Many problems only show up in logs.
What to log:
Log rotation is worth planning too: daily files with a clear naming scheme, kept for a fixed period, make it easier to find a specific day and prevent logs from filling the disk on a small VPS.
What do you log from your EAs?
What to log:
- Signal time and price, plus indicator values.
- Order send time and requested price.
- Fill time and price, slippage.
- Spread at signal and at fill.
- Errors and retries.
- Exit reason.
- CSV for analysis.
- Text logs for debugging.
- Unique IDs linking signal, order and fill.
Log rotation is worth planning too: daily files with a clear naming scheme, kept for a fixed period, make it easier to find a specific day and prevent logs from filling the disk on a small VPS.
What do you log from your EAs?