Queue Position & Fill Probability Primer (2026-02-21)

2026-02-21 · finance

Queue Position & Fill Probability Primer (2026-02-21)

Why this matters

If your strategy leans on passive limit orders, your edge depends on one hidden variable: where you are in the queue. Backtests that ignore queue dynamics usually overestimate fills, underestimate adverse selection, and inflate Sharpe.

Core idea in one line

At a fixed price level, your fill chance over horizon (T) is mostly a function of:

  1. volume ahead of you,
  2. trade flow hitting your side,
  3. cancellations/modifications in front of you,
  4. your latency (insert/cancel/replace).

Practical modeling ladder

Level 0 — naive (don’t trust in production)

Level 1 — queue-depletion heuristic

Level 2 — state-dependent stochastic model

Level 3 — live-calibrated simulator


A robust implementation pattern

  1. Initial queue estimate

    • On order send/ack, estimate ahead volume from market-by-level snapshot.
  2. Event-time update

    • For each depth update at your level:
      • trades reduce ahead volume deterministically,
      • non-trade reductions (cancels/modifies) reduce ahead volume probabilistically.
  3. Probabilistic split for non-trade reductions

    • Use a function (p) mapping your estimated position within queue to probability that a cancel happened before you.
    • Calibrate (p) from your own fills, not generic assumptions.
  4. Outcome labels

    • filled / partially filled / canceled / expired.
    • Keep horizon-specific metrics (e.g., 250ms, 1s, 5s).
  5. Diagnostics

    • Reliability plots: predicted fill probability vs observed fill rate.
    • Error by volatility regime and spread regime.

Common failure modes


Minimal KPI set for production sanity


Notes from literature & practice


Sources

  1. Rigtorp, Estimating order queue position (practical market-by-level heuristic)
  2. hftbacktest docs, Probability Queue Position Models (simulation impact + calibration perspective)
  3. Huang, Lehalle, Rosenbaum (2013/2014), The queue-reactive model (state-dependent order flow framework)
  4. Yu, et al. (2024/2026), Fill Probabilities in a LOB with State-Dependent Stochastic Order Flows
  5. Moallemi & Yuan, A Model for Queue Position Valuation in a Limit Order Book (queue value / execution economics)