How to review a trading bot’s logs
A bot can run for weeks while quietly losing money in one strategy and making it in another. The logs hold the answer if you review them systematically.
A recommended log format
timestamp,symbol,side,qty,price,fee,strategy,signal_price 2026-10-01T14:30:05Z,BTC-USD,buy,0.01,PRICE,FEE,mean_revert,SIGNAL
Use UTC timestamps so restarts and daylight-saving changes don't scramble the order.
The review checklist
- Normalize the log. Get every trade into consistent columns: timestamp with timezone, symbol, side, quantity, price, fee and strategy tag.
- Match entries to exits. Pair each entry with its exit (FIFO is common) so every row is a closed trade with P&L and holding time.
- Reconcile with the broker. Compare the bot's records against your broker export. Every bot fill should exist at the broker and vice versa; quantities and prices should agree.
- Scan for errors and gaps. Look for rejected or duplicate orders, partial fills, restarts, missing periods and positions left open.
- Measure per strategy. Compute win rate, expectancy, fees, slippage and drawdown separately for each strategy tag.
- Write down what you changed. Note code or parameter changes with dates so you can compare periods fairly.
Red flags to look for
- Orders that the bot logged but the broker never filled (or the reverse).
- Repeated orders within seconds, which often signals a retry loop.
- Gaps in the log that line up with crashes or deploys.
- A strategy whose results are only positive before fees and slippage (see measuring cost drag).
FAQ
What columns should a bot log have?
At minimum: timestamp, symbol, side, quantity, price and fee. A strategy tag and the signal price make the review much more useful.
Why reconcile with the broker?
Bots can believe a trade happened when it didn't, or miss fills after a restart. The broker record is the source of truth for what actually executed.
How often should I review?
Whatever cadence fits your trading frequency. The key is to review on a schedule rather than only after a bad day.
Try it on your own trades: the free Robinhood CSV trade analyzer runs in your browser and computes these numbers from your export or bot log. Your file never leaves your browser.
Let Gwurtle do the math
Upload a Robinhood CSV or bot log and see win rate, expectancy, fees and drawdown per strategy. No brokerage login.
Join the waitlist