What if one perpetual candle touches both stop and target?

A crypto perpetual candle records an open, high, low and close, not the full sequence of trades inside it. If a position was already open and both stop and target lie inside the next candle, OHLC alone may not tell you which exit happened first. Record the ambiguity instead of quietly choosing the profitable path.

Why can the same candle support different outcomes?

Consider a position open before the candle starts. A price path can visit the high before the low, or the low before the high, while producing the same four OHLC values. Bybit's kline documentation lists those four prices; it does not supply a within-candle event sequence in that response. Use the documentation only for the USDT perpetual data considered here.

Entry timing also matters. An exit touched before a pending entry fills is not necessarily an exit after entry. Stop trigger reference, gaps, order activation and partial fills are additional modeling questions. A price touch is not a promise of execution at that price.

What does a two-policy example show?

Illustration only; all numbers are synthetic, not a track record.

A long is open at 100, with a stop at 98 and a target at 104. The next candle is O=100, H=105, L=97, C=101. With one unit, the idealized stop-first result is -2 USDT and target-first result is +4 USDT, before costs. Neither is established by the candle.

Suppose nine unambiguous trades sum to +3R and one ambiguous trade could be -1R or +2R. The two declared policies give batch totals of +2R and +5R. This is an assumption range for this ambiguity, not a confidence interval or a maximum-loss bound. Gap losses and execution costs can lie outside those idealized outcomes.

How should the research record handle ambiguity?

Keep a row for each ambiguous trade: entry activation time, candle interval, trigger series, competing event orders and results under both policies. Report the count and fraction of ambiguous trades. Prefer time-ordered finer data when it resolves the sequence, but record remaining timestamp or execution uncertainty. Freeze the policy before scoring later data; do not switch policies trade by trade to improve the result.

What are the short answers?

Can OHLC prove whether the stop or target filled first?

Not when both event orders fit the candle. Finer time-ordered data may help, but an actual fill still requires execution evidence.

Is stop-first a guaranteed worst case?

No. It is a declared conservative ordering convention for an idealized candle model. Gaps, costs and incomplete fills can produce worse results.

What should an ambiguous backtest report?

Report the ambiguous-trade count, the event-order policy and results under alternative declared policies, separately from statistical uncertainty.

Which sources support this lesson?

Past performance does not guarantee future results. Leveraged futures carry a high risk of loss.

Last reviewed by Ric Mescallado