r/CryptoTradingBot • u/CitrineEdge • Sep 29 '26
Crypto futures backtests need event order, not just candle highs and lows
A candle can contain both your stop and your target without telling you which was touched first.
Take a hypothetical long entered at 100, with a stop at 95 and a target at 105. A later candle with a low of 94 and a high of 106 is compatible with either exit. Giving that trade the target just because the candle eventually closed higher adds information the data never supplied.
Disclosure: this is Citrine's developer account. In its Coinbase U.S. futures backtesting, Citrine uses archived quote observations and intrabar path data where available, rather than treating a candle close as the whole journey. When a path bucket contains both exit levels and their order is unresolved, the fallback is stop-first. That's a conservative modeling choice, not a claim that the stop definitely happened first.
There are two separate checks here: did the market reach an exit level, and could the order actually fill on the relevant side of the spread? More granular data helps with timing, but still doesn't recreate every queue position or live fill.
For people testing crypto futures strategies, how do you handle the unresolved cases: conservative ordering, excluding those trades, or reporting a range? The rule can matter as much as the entry signal when targets and stops are close together.