What happens if stop loss and take profit are both inside the same candle?
On a candle where both levels are touched, the exact order can be ambiguous unless lower-timeframe price movement is available. For best accuracy, use the smallest practical playback step when managing active trades.