Trading bots, tested the long way.
4,255 test trades replayed across three years of market history.
- 57 charts on one desk
- 9 strategies in code
- 6 markets, from gold to the DAX
What one bot does.
Nobody presses a button. Each bot runs the same four steps on its own.
- Read the market.
Every new price is checked against the rules of the strategy.
- Size the risk.
The size of each position is worked out from the balance. The ceiling is enforced in code.
- Place the order.
Entry, stop and target go in together.
- Log everything.
Enough to rebuild any trade a month later.
Where the tests ran.
Test trades replayed per market, across three years of history.
What the desk taught me.
- A price feed is not a clock.
The terminal reports the time of the last price update. When the market is quiet, that time stands still.
- State in memory is not state.
Whatever a bot must remember gets written down, so a restart changes nothing.
- A quiet failure is the expensive one.
The system reports what it did not do, and why.
The rest is everything around them: a clock that can be trusted, state that survives a restart, and a failure that says so out loud.
Read the three lessons