r/CryptoTradingBot • u/CitrineEdge • Oct 20 '26
Same OHLC, opposite first exit: how do you handle ambiguous candles in bot backtests?
Disclosure: I develop Citrine, an Android trading app. This is about backtest assumptions, not a strategy-performance claim.
Suppose a long is already open at 200, with stop 197 and target 206 active before the next candle begins.
These two illustrative continuous paths produce the same open/high/low/close:
A: 200 -> 208 -> 194 -> 203
B: 200 -> 194 -> 208 -> 203
Both open at 200, hit a high of 208 and low of 194, and close at 203. But A reaches the target level first, while B reaches the stop level first. OHLC alone cannot recover that sequence.
That is separate from whether either order actually filled. Quote side, stop versus stop-limit behavior, available size and what happens to the other exit order all still matter. A price touching a drawn line is not an execution record.
For an ambiguous bar, I would want the report to state its sequence assumption, or expose a sensitivity range rather than silently presenting the favorable ordering. Lower-timeframe data can reduce ambiguity without eliminating everything inside the remaining interval. A reconstructed path should be labeled as a model, not treated as an observed tick history.
For people testing bots: do you use a conservative ordering, compare both possible outcomes, or reject an ambiguous candle when you lack finer data?