Skip to content
← Learning hub
Execution Research / Research note

Limit-order backtests: a touched price is not a fill

Model venue-specific queue priority, partial execution, latency and adverse selection before treating a bar-level price touch as a completed fill.

Edge Quant editorial · 2026-11-15 · About 8 minutes

A bar that trades at your limit price does not prove that your resting order would have executed. Other orders may have been ahead of you, only part of the incoming volume may have reached your queue position, and fills can arrive precisely when the price is moving against the order.

Published 15 November 2026. All prices, quantities and fill outcomes in the example are hypothetical; they are not market observations, a forecast or an Edge Quant backtest.

What a price touch means

Suppose a bar’s low equals or moves below a buy limit. OHLC data establishes that some trade printed at or below that level during the interval, depending on the data convention. It does not reveal when your order arrived, how much was queued ahead, whether available sell volume was sufficient, or what happened to your order after a partial fill.

Even tick data can be insufficient if it reports only trades and quotes rather than order-level events. A trade at the limit might have consumed queue ahead of you, or it might have occurred on another venue or in a different contract. A backtest must match its fill model to the market data and venue rules it actually has.

Queue priority and partial fills

Matching rules vary by venue and product. CME documents multiple Globex algorithms, including FIFO and pro-rata variants; it also describes market-by-order data that can expose order-level priority identifiers. Under a FIFO rule, arrival time at a price can matter. Under allocation rules, displayed size and product-specific rules can affect distribution. A generic “price touched, fill 100%” rule does not represent either market faithfully.

Hypothetical illustration: imagine 40 contracts are displayed ahead of a new 10-contract buy limit at one price. A subsequent sell-aggressor flow trades 25 contracts at that price. Under a simple FIFO assumption, the new order receives no fill because the ahead queue has not been depleted. If 55 contracts trade, up to 15 could remain after the queue ahead is consumed, enough to fill the 10-contract order only if the model also assumes that queue estimates and cancellations are handled as specified. These figures only explain the arithmetic; they do not describe an observed market.

With aggregated order-book data, the true queue can be uncertain because cancellations, hidden liquidity, implied orders, amendments and feed timing affect priority. A responsible simulation should represent that uncertainty instead of claiming a precise position it cannot observe.

Fills and adverse selection

Execution is not randomly missing from the sample. A passive buy may fill when aggressive sellers arrive; a passive sell may fill when buyers lift the offer. The same order may remain unfilled when price moves away in a favorable direction. The SEC’s 2024 Regulation NMS rule discusses how fill likelihood and adverse selection can vary with queue position. This means a strategy can have attractive hypothetical limit prices but still receive an unfavorable subset of its intended trades.

Do not simply remove unfilled signals from the ledger and calculate returns on the fills that remain. Record the signal, order submission time, limit price, expiry, cancel or replace events, partial fills and the price path after expiry. Compare the realized policy—including missed opportunities—with the original signal logic.

Build a defensible fill model

Use the strongest data available: order-level events and venue-specific priority rules where possible; otherwise, state the limits of quote or bar data. Model order arrival after the signal, latency, order lifetime, queue ahead, trade-through volume, partial fills, cancellations, tick size, fees and rebates. For intrabar OHLC tests, use conservative assumptions and acknowledge that event order is unknown.

Run transparent scenarios instead of one overly precise estimate. For example, compare a conservative rule requiring a trade-through plus an estimated queue depletion with a more permissive touch rule. The range is a sensitivity analysis, not a confidence interval or evidence that either endpoint is the true fill rate. Never call a scenario a backtest result unless it was actually run on disclosed data and code.

What to report

  1. Market, venue, product and the matching rule assumed.
  2. Data type and granularity, with timestamps and feed limitations.
  3. Order arrival delay, queue model, order lifetime and cancel behavior.
  4. Fill quantity, partial-fill treatment and post-fill position management.
  5. Fees, rebates, spread, slippage and adverse-selection sensitivity.
  6. Unfilled-signal count and the strategy result under the full order policy.
  7. Which assumptions are observed, venue-specified or purely hypothetical.

The practical takeaway

Price contact is evidence that the market traded there, not proof that your order joined the executed queue. A useful limit-order backtest models order arrival, priority, volume, partial execution and the possibility that fills are adversely selected. When the data cannot identify those mechanics, disclose the uncertainty and show conservative sensitivities instead of presenting perfect fills as fact.

Primary references

References reviewed 15 November 2026. Original exercises and project-specific observations are identified separately.

Keep exploring

Review order size and market impact ↗

Educational engineering and research guidance. Examples do not establish a profitable or live-ready trading strategy.