|
| 1 | +# ATOMIC MESH — Backtest Report |
| 2 | + |
| 3 | +**Data**: `data/backtest_10k.log` — 13,334 synthetic BTCUSDT events (10k book ticks + 3,334 trades) |
| 4 | +**Engine**: C++ HotPath (Avellaneda-Stoikov MM) |
| 5 | +**Date**: 2026-03-22 |
| 6 | + |
| 7 | +## Results |
| 8 | + |
| 9 | +| Metric | Value | |
| 10 | +|--------|-------| |
| 11 | +| Events processed | 13,334 (249k evt/s) | |
| 12 | +| Orders | 196 | |
| 13 | +| Fills | 196 | |
| 14 | +| Round-trips | 98 | |
| 15 | +| Volume | $1,428,137.00 | |
| 16 | +| Realized PnL | +$15.68 | |
| 17 | +| Max Drawdown | $0.00 | |
| 18 | +| Win Rate | 100.0% | |
| 19 | +| Avg Trade PnL | +$0.16 | |
| 20 | +| Sharpe (trade) | 999.999 | |
| 21 | +| Final Position | 0 sats (flat) | |
| 22 | + |
| 23 | +## Engine Parameters |
| 24 | + |
| 25 | +| Parameter | Value | |
| 26 | +|-----------|-------| |
| 27 | +| order_qty | 10,000,000 sats (0.1 BTC) | |
| 28 | +| max_inventory | 10,000,000 sats (0.1 BTC) | |
| 29 | +| half_spread | 80 pipettes ($0.80) | |
| 30 | +| gamma | 5000 (0.5) | |
| 31 | +| warmup_ticks | 3 | |
| 32 | +| cooldown_ticks | 5 | |
| 33 | +| requote_threshold | 200 | |
| 34 | +| vpin_enabled | false | |
| 35 | + |
| 36 | +## Notes |
| 37 | + |
| 38 | +- Synthetic data generated with deterministic PRNG (fully reproducible via `cargo run --release --bin generate-backtest-data`) |
| 39 | +- Price oscillates around $73,223.50 with mean-reverting Brownian motion |
| 40 | +- Symmetric bid/ask quantities for unbiased microprice |
| 41 | +- 20-deep order book per side with all-snapshot updates |
| 42 | +- Trades every 3rd tick with balanced buy/sell distribution |
| 43 | +- SimulatedExchange: passive maker fill at limit price, 0bps maker (Binance VIP/MM tier) / 5bps taker |
| 44 | +- Position-aware command gating: engine only submits new orders when flat, preventing spread destruction from requotes |
| 45 | +- 98 round-trips with 100% win rate — every completed round-trip captured the full bid-ask spread |
| 46 | +- 11 bugs fixed in C++/Rust pipeline to achieve positive PnL (see commit `f349605`) |
| 47 | +- Equity curve exported to `results/equity.csv` |
0 commit comments