A Quote-Canceling Strategy and Why Backtests May Differ from Live Trading
Summary
The document shows a simple two-sided quoting loop for BTC/USDT. On each tick, it reads the order book, places a sell price just below the best ask and a buy price just above the best bid, cancels existing orders, and repeats after a short delay. Its title frames a question about why simulated and live results differ when using the same exchange and market.
This setup resembles rudimentary market making, but the displayed logic does not explain the discrepancy or provide comparative results. The quotes may cross or be rejected depending on order-book conditions and exchange rules; repeated cancellation and replacement can also create execution, latency, fee, and queue-position effects that a simulator may model differently or omit. The snippet does not state position limits, inventory controls, or safeguards, so it is not enough to assess profitability or live suitability.
Key ideas
- The loop repeatedly cancels open orders and submits buy and sell quotes around the best book prices.
- The strategy is a rudimentary two-sided market-making approach for a crypto pair.
- Differences between simulation and live results can arise from execution details that the snippet does not model or discuss.
- The example gives no performance evidence, inventory controls, or risk limits.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.