How much do bar backtests overstate results?
Bar backtests overstate results whenever orders fill inside a bar. Across 295 US stocks and ETFs, optimistic daily-bar backtests overstated CAGR by a median +1.9 pp per year, and 36%–51% of the ones that looked profitable were not profitable once every order was filled second by second. Strategies that trade only at bar closes with market orders showed no difference at all.
Key findings
- Daily bars, "target first": when a backtester assumes the target was hit before the stop, it overstated CAGR by a median +1.9 pp per year (95% CI +1.6 pp to +2.2 pp). Of the backtests that looked profitable, 36% were not profitable with stops filled at their level and 51% with stops filled at the price of the second in which they triggered.
- Daily bars, the usual OHLC heuristic: unbiased on average (a median gap of 0.0 pp), but a single backtest can be far off: individual results ranged from −2.5 pp to +1.6 pp per year (10th to 90th percentile).
- Intraday strategies on 1-minute bars: guessing the order inside the bar cost little (by a median +0.03 pp per year). The stop fill price is what matters: backtests were overstated by a median +8.9 pp per year (+8.0 pp to +10.0 pp) once stops fill at the price of the second they trigger, and 60% of the profitable ones lost money (1% with stops filled at their level).
- Risk is understated too: optimistic daily bars showed a median 3.1 points less maximum drawdown, and intraday strategies on 1-minute bars 11.9 points less than second-level fills with real stop prices.
- Control group: 1,598 daily-signal backtests that only trade at the close with market orders changed in 0% of cases. The gaps come from fills inside the bar, not from the data.
Two separate effects
A bar backtest makes two assumptions that second-level data can test.
First, the order inside the bar. When a stop and a target both sit inside one bar, the backtester has to guess which was hit first. Comparing bars with a second-level path that uses exactly the same fill rules isolates this guess. The usual heuristic (the extreme closer to the open came first) is right on average; "target first" is biased upward.
Second, the fill price of stops. A bar backtest fills a stop exactly at its level. In a fast market the next trades are often worse. Second-level data shows the price in the second the stop triggered, and Matana Labs fills stops there. That leans conservative, because a real order fills milliseconds after the trigger, not at the end of that second. Real results lie between the two second-level fill rules, so we report both. For intraday strategies this second effect is far larger than the first.
Breakout systems with tight stops are hit hardest. On 5-minute bars with intraday signals: +0.5 pp with stops at their level, +9.5 pp with stops at the trigger second. Daily mean-reversion systems that rarely use stops are barely touched.
Results by segment
| Segment | Daily bars, target first: median CAGR gap | …profitable → not profitable (stops at level / at trigger second) | Daily bars, OHLC heuristic: 10th to 90th percentile | Intraday, 1-minute bars: median gap (stops at level / at trigger second) | …profitable → losing (level / trigger second) |
|---|---|---|---|---|---|
| US stocks & ETFs | +1.9 pp | 36% / 51% | −2.5 pp to +1.6 pp | +0.03 pp / +8.9 pp | 1% / 60% |
| Crypto | +31.1 pp | 43% / 70% | −7.7 pp to +17.0 pp | +0.00 pp / +34.6 pp | 1% / 91% |
| FX & spot metals | +0.0 pp | 35% / 40% | −0.4 pp to +0.1 pp | +0.00 pp / +0.6 pp | 0% / 67% |
Crypto numbers are noisier and more extreme. Many crypto instruments are thin altcoin pairs whose prints bounce between bid and ask and include bad ticks that had to be cleaned (see the limitations). We never use crypto for a headline.
With the OHLC heuristic instead of target first, 6% of profitable daily-bar backtests were not profitable at second level with stops at their level, and 23% with stops filled at the trigger second. For 1-minute bars with daily signals: 24% of the profitable ones were not profitable once stops fill at the trigger second.
Method
Question. Same strategy, same signals, same instrument: how much does the result change when orders are filled on bars instead of on every second?
Data. Second-level market data (one price per second): the regular session 09:30 to 16:00 New York time for stocks and ETFs, the full day for crypto and FX. Prices are back-adjusted for splits; dividends are not included. Sessions with damaged data, under 3,600 seconds of data or a high/low ratio above 1.6 were dropped; isolated spike prints that revert within 5 seconds were replaced by the previous price. The same cleaning applies to every fill model.
Strategies. 102 strategies in 13 families with parameter variations, run on 421 instruments. Daily signals: SMA crosses with and without stop and target, Donchian breakouts, RSI(2) with a 200-day filter, Bollinger mean reversion, open-drive brackets, NR7 breakouts and gap fades. Intraday signals (flat at the close): opening-range breakouts, EMA crosses and RSI(14) on 5-minute bars, VWAP fades, Donchian on 5-minute bars and EMA crosses on 1-minute bars. Signals are computed once from bars built from the same seconds, so they are identical in every model.
Fill models.
- Bars (daily, 5-minute, 1-minute): the path inside a bar runs open → one extreme → the other → close. Three conventions decide which extreme comes first: the heuristic (the one closer to the open, the common default), target first (optimistic) and stop first (pessimistic). Stops and limits fill at their level.
- Second level: every second of the tape. Market orders fill at the next second, limits at their level, and stops either at their level or at the price of the second in which they trigger. The second rule is how Matana Labs fills stops; the harness was matched trade by trade with the production engine on a reference tape.
Assumptions. Costs of 1 bp per side everywhere (commission plus spread); 100% of equity per position, no leverage; starting equity 100,000; no volume or queue limits (equal for every model). Each comparison is the same (instrument, strategy) in two models and needs at least 10 trades at second level: 17,528 daily-signal and 8,850 intraday backtests in US stocks and ETFs. CAGR uses calendar time. Confidence intervals are 95% CI from a cluster 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 used for every instrument are in data-coverage.csv. Each instrument contributes what it has, with up to 23 years of history; no study assumes a longer history than the data has.
Limitations
- Survivorship. The universe is the set of instruments available in Matana Labs today. Companies that were delisted or went bankrupt are missing, which flatters absolute returns. The comparisons here are between fill models on the same instruments, so the bias largely cancels in the gaps, but not in the levels.
- Time period. Stocks and ETFs cover 2003 to 2026 at most, crypto and FX less (see the coverage table). Another market regime can give different gaps.
- Costs model. A flat 1 bp per side understates costs for illiquid names and for crypto, and ignores wider spreads in fast markets. Dividends are not included.
- Uncertain split adjustments. Splits were detected from overnight gaps that match common ratios. 189 split adjustments used 3:2 or 2:3-type ratios and may be genuine price gaps (mostly crypto, also some crash-day opens). They apply identically to every model, so the comparisons are unaffected, but individual instruments' histories may contain errors.
- Second level, not tick level. The tape holds one price per second. Stops filled at their level are optimistic; stops filled at the trigger second's last price lean pessimistic for liquid names.
- Limit orders fill when the price touches them, with no queue. That is optimistic, equally for every model.
- Generic strategies. The rule sets are broad but standard. For any single strategy the 10th to 90th percentile range matters more than the median.
How the engine behind this study fills orders and charges costs: order execution model, costs and the engine validation.
Reproduce it in Matana Labs
Every backtest in Matana Labs fills stops, targets and exits by the second, on every plan (how second-by-second fills work). To see this effect on your own idea, build the strategy, run it in Backtest Lab and compare its result with the same rules in a bar-based tool. The guide to second-level backtesting walks through examples. 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.
- by_family.csv: Aggregated summary statistics: segment × reference × strategy family × bar model
- summary_by_model.csv: Aggregated summary statistics: segment × reference × signal timeframe × strategy group × bar model
- data-coverage.csv: the first and last session used, sessions and split adjustments per instrument (shared by all studies)
Columns of by_family.csv (Bar backtests vs second-level fills)
pairs: backtestsmedian_d_cagr: as abovemean_d_annlog: as abovemedian_d_winrate: as aboveshare_changed: as abovefalse_profitable_share: as above
Columns of summary_by_model.csv (Bar backtests vs second-level fills)
segment: instrument segmentreference: engine = second-level fills with real stop prices (the Matana Labs engine); level = second-level path, stops at levelsignals: daily signals (strategies decided at the daily close; all bar sizes) or intraday signals (5-/1-minute decisions; 5m and 1m bars only)group: intrabar orders (stops/targets/limit or stop entries) or signal-only (control)model: bar model: D/5m/1m; _opt/_pess = optimistic/pessimistic intrabar order, plain = OHLC heuristicpairs: (ticker, strategy) backtests compared, each with >=10 trades at the referencetickers: instrumentsmedian_d_cagr: median of CAGR(bar) - CAGR(reference), fraction (0.01 = 1 pp)median_d_cagr_lo/hi: 95% CI, cluster bootstrap over tickers (primary rows only)mean_d_annlog: mean difference of annualized log growth, fraction per yearp10_d_cagr/p90_d_cagr: 10th/90th percentile of the CAGR gapshare_changed: share of pairs where the bar result differs at allshare_overstated/understated: share where the bar backtest looks better/worsemedian_d_winrate: median win-rate difference, fractionmedian_d_maxdd: median max-drawdown difference, fraction (negative = bar shows less drawdown)bar_profitable: pairs profitable in the bar backtestfalse_profitable_share: of those, share not profitable at the reference
Methodology & data on GitHub: the method, results and charts of this study.
Cite as: Matana Labs (2026). How much do bar backtests overstate results?. matanalabs.com/research/bar-resolution-backtest-inflation/
Questions
Do daily bars always inflate backtests?
No. Strategies that only trade at the close with market orders showed no gap at all. The problem is orders that execute inside the bar: stops, targets, limit entries and breakout entries.
Is the OHLC heuristic good enough?
On average it is unbiased, but a single daily-bar backtest can be off by several percentage points a year in either direction. Assuming the target came first, as many hand-written backtests do, is biased upward.
Are 1-minute bars enough?
For the order inside the bar, almost. For stop fills, no: a stop that triggers in a fast move fills at the next available price, and only tick or second-level data shows that price.