# The bar reached my target. Why was I stopped out?

> When one bar reaches both, the stop fills first.

Source: https://algobarsx.com/docs/why-stop-first/

When a bar reaches both the stop and the target, the engine walks the 1-minute bars inside it to see which came first ([E6](https://algobarsx.com/docs/rules-fills/#E6)). If finer data cannot tell, the stop fills ([E7](https://algobarsx.com/docs/rules-fills/#E7)). The engine never picks the flattering answer, so a backtest errs on the side of caution.
