Matana Labs

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

Share of profitable bar backtests that are not profitable at second-level fills, US stocks and ETFs
Share of profitable bar backtests that are not profitable at second-level fills, US stocks and ETFs

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.

Median CAGR gap from guessing the order inside the bar, daily and 1-minute bars
Median CAGR gap from guessing the order inside the bar, daily and 1-minute bars

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.

Mean gap split into the order inside the bar and the stop fill price
Mean gap split into the order inside the bar and the stop fill price

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.

Median CAGR gap of 1-minute-bar backtests by strategy family
Median CAGR gap of 1-minute-bar backtests by strategy family

Results by segment

SegmentDaily bars, target first: median CAGR gap…profitable → not profitable (stops at level / at trigger second)Daily bars, OHLC heuristic: 10th to 90th percentileIntraday, 1-minute bars: median gap (stops at level / at trigger second)…profitable → losing (level / trigger second)
US stocks & ETFs+1.9 pp36% / 51%−2.5 pp to +1.6 pp+0.03 pp / +8.9 pp1% / 60%
Crypto+31.1 pp43% / 70%−7.7 pp to +17.0 pp+0.00 pp / +34.6 pp1% / 91%
FX & spot metals+0.0 pp35% / 40%−0.4 pp to +0.1 pp+0.00 pp / +0.6 pp0% / 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.

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

SegmentInstrumentsSecond-level data usedMedian history (min to max)SessionsNotes
US stocks & ETFs2952003-09-10 to 2026-11-1920.8 years (1.8 to 23.2)1,249,52225 sessions excluded by data checks; 301 split adjustments (69 uncertain)
Crypto932013-11-01 to 2026-11-195.5 years (2.0 to 13.0)198,978470 sessions excluded by data checks; 146 split adjustments (120 uncertain)
FX & spot metals332009-09-24 to 2026-11-1917.2 years (3.1 to 17.2)167,3602 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

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 Lab

Download the summary data

Aggregated statistics only, no price series and no trade lists. Licence: CC BY 4.0; please credit Matana Labs.

Columns of by_family.csv (Bar backtests vs second-level fills)
  • pairs: backtests
  • median_d_cagr: as above
  • mean_d_annlog: as above
  • median_d_winrate: as above
  • share_changed: as above
  • false_profitable_share: as above
Columns of summary_by_model.csv (Bar backtests vs second-level fills)
  • segment: instrument segment
  • reference: engine = second-level fills with real stop prices (the Matana Labs engine); level = second-level path, stops at level
  • signals: 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 heuristic
  • pairs: (ticker, strategy) backtests compared, each with >=10 trades at the reference
  • tickers: instruments
  • median_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 year
  • p10_d_cagr/p90_d_cagr: 10th/90th percentile of the CAGR gap
  • share_changed: share of pairs where the bar result differs at all
  • share_overstated/understated: share where the bar backtest looks better/worse
  • median_d_winrate: median win-rate difference, fraction
  • median_d_maxdd: median max-drawdown difference, fraction (negative = bar shows less drawdown)
  • bar_profitable: pairs profitable in the bar backtest
  • false_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/

Updated 2026-11-22. Research on historical data, not financial advice.

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.

ShareXLinkedInRedditHacker NewsEmail