Stop loss or take profit first? How often bars can't tell
When a stop loss and a take profit both fall inside one bar, a bar-based backtest cannot know which was hit first. We simulated 160,346,000 bracket trades on 421 instruments and checked each one against second-level data. On daily bars, 41% of ±0.5% brackets were ambiguous, and assuming the target came first made the same trades look several basis points better per trade than they really were.
Key findings
- Tight brackets on intraday bars: with a ±0.25% bracket, the exit bar held both levels in 0.49% of 1-minute bars, 3.2% of 5-minute bars and 24.2% of hourly bars.
- Daily bars: 41% of ±0.5% brackets and 21% of ±1% brackets were ambiguous. The bar alone cannot say whether the trade won or lost.
- The OHLC heuristic guesses wrong often: when a bar was ambiguous, it picked the wrong level 43% of the time on daily bars (±0.5%) and 37% on 1-minute bars (±0.1%).
- "Target first" is not a harmless shortcut: it made a ±0.5% bracket look 19.6 bps per trade better on daily bars (95% CI +18.7 bps to +20.6 bps), while the true expectancy of the same trades was −0.4 bps before costs. On 1-minute bars the overstatement was 0.04 bps.
- By contrast, the heuristic's own bias was small: +0.30 bps per trade on daily bars. Its problem is noise on single trades, not a tilt.
What guessing is worth
An ambiguous bar is a coin the backtester has to flip. The heuristic flips it fairly but often wrong; "target first" always calls it in the trader's favour. Over many trades the second turns a strategy with no edge into one that looks profitable on paper.
Ambiguity rate by bar size, US stocks & ETFs
| Bracket (stop / target) | 1-minute | 5-minute | 15-minute | 1-hour | Daily (entry at the open) |
|---|---|---|---|---|---|
| −0.1% / +0.1% | 2.8% | 13.0% | 28.4% | 53.0% | 79.2% |
| −0.25% / +0.25% | 0.5% | 3.2% | 8.9% | 24.2% | 62.9% |
| −0.5% / +0.5% | 0.1% | 0.8% | 2.9% | 10.0% | 41.1% |
| −1% / +1% | 0.0% | 0.2% | 0.8% | 3.7% | 20.5% |
| −2% / +2% | 0.0% | 0.0% | 0.2% | 1.1% | 9.1% |
| −0.25% / +0.5% | 0.2% | 1.5% | 4.7% | 14.8% | 50.8% |
| −0.5% / +1% | 0.0% | 0.4% | 1.4% | 5.5% | 27.8% |
| −1% / +2% | 0.0% | 0.1% | 0.3% | 1.7% | 12.2% |
By segment
| Segment | 1-minute, ±0.25% | 5-minute, ±0.25% | Daily, ±1% | Heuristic wrong when ambiguous (1-minute, ±0.25%) |
|---|---|---|---|---|
| US stocks & ETFs | 0.49% | 3.2% | 20.5% | 35% |
| Crypto | 1.43% | 7.3% | 56.6% | 48% |
| FX & spot metals | 0.03% | 0.1% | 3.5% | 28% |
Crypto bars are ambiguous far more often: the instruments are volatile and many are thin altcoin pairs with noisy prints. FX moves less inside a bar, so its brackets are rarely ambiguous at these widths.
Method
Question. For a trade with a stop loss and a take profit, how often does the bar that ends the trade contain both levels, and what does each way of guessing cost?
Trades. Long entries at the session's first second and every 30 minutes up to 90 minutes before the close (every 2 hours for 24-hour instruments). Stop and target sit at fixed percentages from the entry: symmetric ±0.1, 0.25, 0.5, 1 and 2%, and asymmetric 0.25/0.5, 0.5/1 and 1/2%. Trades without a hit close at the session close.
Truth and bars. The truth is the first second whose price reaches either level. Intraday bars are anchored at the entry, so the entry is a bar's open; daily bars take the entry at the open only. A trade is ambiguous when the first bar that touches either level touches both. The heuristic assumes the extreme closer to the bar's open came first; target first assumes the take profit did.
Measures. Ambiguity rate = ambiguous trades / trades that hit a level. Expectancy is in basis points of the entry price, before costs. Confidence intervals are 95% CI from a bootstrap over instruments (1,000 resamples, seed 20261120).
Data coverage
| Segment | Instruments | Second-level data used | Median history (min to max) | Sessions | Notes |
|---|---|---|---|---|---|
| US stocks & ETFs | 295 | 2003-09-10 to 2026-11-19 | 20.8 years (1.8 to 23.2) | 1,249,522 | 25 sessions excluded by data checks; 301 split adjustments (69 uncertain) |
| Crypto | 93 | 2013-11-01 to 2026-11-19 | 5.5 years (2.0 to 13.0) | 198,978 | 470 sessions excluded by data checks; 146 split adjustments (120 uncertain) |
| FX & spot metals | 33 | 2009-09-24 to 2026-11-19 | 17.2 years (3.1 to 17.2) | 167,360 | 2 split adjustments (0 uncertain) |
The first and last session of every instrument are in data-coverage.csv.
Limitations
- Survivorship. The universe is the set of instruments available in Matana Labs today; delisted companies are missing. Ambiguity rates depend on volatility, so a universe with failed companies would likely show somewhat more ambiguity.
- Time period. Stocks and ETFs cover 2003 to 2026 at most, crypto and FX less. Calmer or wilder years change the rates.
- Costs model. Expectancy here is before costs, on purpose: the study is about ordering. Real fills at the stop can be worse than the level (see the latency and stop slippage study).
- Uncertain split adjustments. Splits were detected from overnight gaps; some 3:2 or 2:3-type adjustments may be genuine price gaps. They affect bars and seconds alike, so the comparison holds, but a wrong adjustment can create or hide a large move on one day.
- Second level, not tick level. The tape holds one price per second. A jump across both levels between two consecutive seconds would be undecidable even here; it was counted, and it occurred 0 times.
- Long side only. For symmetric brackets the short side is the mirror image.
How the engine behind this study fills orders and charges costs: order execution model, costs and the engine validation.
Reproduce it in Matana Labs
Matana Labs checks stops and targets every second, so a backtest never has to guess which came first (how second-by-second fills work). Build a bracket strategy in Strategy Lab, run it in Backtest Lab and read each trade's exit time to the second in the trades list. To get a feel for how fast a bracket resolves, play a past day second by second in market replay. The aggregated results of this study are below, under CC BY 4.0.
Reproduce this test in Matana LabsOpens Strategy Lab in the app. Sign in or create an account on the free Explore plan first.
Open Strategy LabDownload the summary data
Aggregated statistics only, no price series and no trade lists. Licence: CC BY 4.0; please credit Matana Labs.
- ambiguity.csv: Aggregated summary statistics: segment × bar size × bracket (stop %, target %)
- data-coverage.csv: the first and last session used, sessions and split adjustments per instrument (shared by all studies)
Columns of ambiguity.csv (Stop or target first)
entries: simulated bracket trades (long)resolved: trades where stop or target was hit before the session closeambiguous: trades whose first touching bar contains both levelsbetween_second_double_cross: trades where both levels were crossed between two consecutive secondsambiguity_rate: ambiguous / resolved (+95% CI, bootstrap over instruments)heuristic_error_rate: share of ambiguous bars where the OHLC heuristic picks the wrong level (+CI)optimistic_error_rate: share of ambiguous bars where 'target first' is wrongtarget_first_share_truth: share of resolved trades that hit the target first (second-level truth)ev_truth_bps: expectancy per trade at second level, bps of entry price, no costsev_bias_optimistic_bps / ev_bias_heuristic_bps: expectancy overstatement per trade of the bar assumption vs truth, bps (+CI)
Cite as: Matana Labs (2026). Stop loss or take profit first? How often bars can't tell. matanalabs.com/research/stop-loss-take-profit-intrabar-ambiguity/
Questions
Is this a problem for swing traders?
Less so on intraday bars: wide brackets are rarely ambiguous there. It matters most for tight stops and for daily-bar backtests.
Does the OHLC heuristic solve it?
It is right more often than a coin flip, but far from reliably, and on any single trade it can be wrong.
What resolution is enough?
Ambiguity falls with bar size. For brackets of a quarter of a percent or tighter, even 1-minute bars leave a measurable share unresolved.