Every live trading bot config needs a replayed twin — A simulated +83.6 $/day is not a forecast: replaying each live configuration on its own windows is what exposed the simulator's and the rules' errors
A "twin" is a replay of a live bot's exact configuration, or of its real orders, on the recorded book for the same market windows, compared with what the live bot actually got: fills (executions of its resting orders), shares and money. In October 2026 this comparison repeatedly showed that a simulated daily profit was not a forecast, and located the error in the rule, an input feed, or the fill model. Outcome: MEASURED; the method found errors, it did not make the simulator trustworthy by itself.
The hypothesis
A rule that earns in simulation over thousands of windows, with a decent t-statistic, should earn something similar live; if a short live run differs, that is noise. Under this belief the simulator is validated once, in general, and then trusted for every new rule.
How it was tested
Market: BTC Up/Down 5-minute markets (some ETH). Five comparisons, each on the same windows for live and replay:
- 8–9 October 2026: 179 common windows, three columns: real fills, a replay of the real orders in the fill engine, and the simulated strategy generating its own orders (3 seeds).
- 15 October: a rule quoting a ladder below a model fair value, 65 windows (04:35–09:55 UTC), live against simulation.
- 16–17 October: live configurations replayed on their own periods, then 14 configurations replayed with the delays of the trading machine instead of the recorder's.
- 25 October: a rule sending short-lived bids at the crossing price on the side below 49 cents, 5 shares each; simulated over 3,338 windows, then replayed on the 6 windows for which real orders existed.
- 25 October: twins of the 10 configurations with real orders that day, their real orders removed from the recorded book.
Result
MEASURED.
| Case | What the twin showed |
|---|---|
| 8–9 October, 9 October part (99 windows) | Replay of real orders had 0.97–1.12 of real shares; the simulated strategy took 77–80% of real shares and understated the loss, outside the 90% interval (the 8 October part, 80 windows, was inside it) |
| 15 October ladder (65 windows) | Shares almost equal window by window; the quality of fills differed, and the simulated result had the opposite sign to the real one |
| 16 October, two resting-bid configurations (408 and 698 windows) | Shares ×1.06 and ×1.00; the simulated result again had the opposite sign to the real one |
| 25 October short-lived bids | Long simulation +83.6 $/day (t +2.8); the twin on the 6 windows with real orders had the opposite sign, matching the real result, on 120 shares against 179 real |
In the 25 October case the twin matched the real result on those windows but saw about two thirds of the shares, missing fills that landed in the same instant. The rule had two defects: bids sent before the market opened, and up to 10 bids in flight at once, all landing on an emptied level. A corrected variant simulated at +40.4 $/day. The next morning both simulations, and the twins of that day, were found to have been run from an old configuration without the current calibration; the corrected variant was not confirmed with real orders.
Why
The divergence sat in three different places.
- The rule as simulated is not the rule as run. On 8–9 October the queue model held on the real orders while the strategy simulation did not; the defect was located in the order generator (prices, refills, timing after a fill).
- Inputs differ. On 15 October the simulation computed fair value from one exchange and the real orders from another, whose public feed arrived at about 330 ms. On 17 October a later configuration of the ladder, replayed with the trading machine's delays instead of the recorder's, went from +10 $ to −49 $ over 152 windows, towards the real result: the recorder had hidden a feed delay. See Deribit public 100 ms feed runs about 200 ms late — A live bot was reading Deribit's public 100 ms channel (about 200 ms late, in batches) while its rules assumed the raw feed; the gain expected from the raw feed was not confirmed with real orders (11 windows).
- The fill model errs by rule type. On 25 October the twins followed some configurations (shares 1.17 and 0.93 of real) and tripled the fills of another (117 shares against 40 real), which explained why that rule looked worse in long simulation than on real orders (Quoting the BTC-favoured side: paper profit gone live — Quoting the side favoured by a BTC move: +48 $/day on paper, about zero in the calibrated simulator, no visible edge on 406 shares of real orders). As of 26 October that day's twins were among the runs started from the uncalibrated configuration, and the over-fill on that rule was still there afterwards (4 times in the twin).
The working rule that follows (applied from 19 October 2026): every live configuration has a twin; on divergence the simulator is recalibrated and the past resimulated. "Calibrated" meant a margin of ±50 $/day, holding out of sample, no open class of divergence, and shares between 0.95 and 1.05 of live.
What would change this
- Agreement on shares is not agreement on money: with shares at ×1.00–1.06 the replay was still 0.1–0.2 $ per window more pessimistic than live, and shifting all timings by 48 ms moved results by ±30 $.
- A twin cannot reconstruct inputs that were not logged: configurations driven by one outside feed replayed at about twice the live shares.
- Short twins have little power: the comparisons here run from 6 to 698 windows.
- See Calibrated order book replay tracks live fills, in part — After calibration on its own live fills, a millisecond book replay tracked live results, within a wide margin, for the order style it was calibrated on, and not for others for the state reached.
How to check it yourself
1. Replay the exact live configuration on the recorded book of the same windows, with your own real orders removed from that book, and confirm first that the replay configuration carries the current calibration. 2. Compare in this order: orders generated, shares filled, then money; window by window, not only totals.
Source: Sinapsi — verified compositional memory, queryable by LLMs. Query this wiki live from your assistant over MCP (endpoint: https://sinapsi.wiki/mcp/w/prediction-markets/), or build your own verified wiki (public, or private for your team). CC BY 4.0 — reuse with attribution to Sinapsi.