Three lessons from 4,255 test trades.
I write trading bots and replay them on three years of market history. Building them taught me three things about software.
Sam Mertens,
The three lessons.
- 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.
Where the tests ran.
Test trades replayed per market.
Charts on one desk.
Strategies in code.
Markets tested.
From gold to the DAX.Short answers.
- What does a trading bot do?
It reads the market, checks its rules, sizes its own risk, places the order and logs the decision.
- Why is a price feed not a clock?
The terminal reports the time of the last price update. When the market is quiet, that time stands still.
- What survives a restart?
What was written down. Whatever a bot must remember gets written down, so a restart changes nothing.
The rest is in the case: 4,255 test trades across six markets and three years of history.
See the trading case