A passive fill can be bad news

0
8

XCore HFT / Trading Lab

A passive fill can be bad news

Quantitative execution, market-microstructure, and risk-control research from XTRSK.

What this problem really is

In an electronic limit‑order market the most common proxy for “good execution’’ is a high fill rate. The intuition is simple: if an order is filled, the trader has captured the quoted spread and avoided the cost of standing idle. The reality is more subtle. A fill that occurs just before the market moves sharply against the position can destroy the modest profit earned on the spread and leave the trader with a net loss. In that sense a “passive fill’’ can be bad news.

The phenomenon is a direct consequence of price‑time‑priority queues. An order that sits at the best bid (or ask) is exposed to two opposing forces. On the one hand it earns the quoted half‑spread each time a market order walks the queue. On the other hand it bears the risk that the mid‑price will shift before the order is executed, converting the expected spread capture into an adverse‑selection cost. The net value of the queue position is therefore the sum of realised spread, realised adverse selection, and the optionality of remaining in line for future moves.

When a desk evaluates execution quality it is tempting to treat the elapsed lifetime of an order as the only variable. The research that underpins this article shows that the queue’s value changes continuously with the market’s order flow, volatility, and the order’s own cancellation dynamics. A static time‑based kill‑switch will miss many situations where a fill is “toxic’’ – i.e. where the expected future adverse selection outweighs the spread already captured.

Consequently, a high fill rate does not guarantee that the execution was beneficial. The real question is whether the realised profit‑and‑loss (P&L) after each fill, and after the subsequent price path, remains positive after accounting for the cost of the adverse move.

A passive fill can be bad news: mechanism
Figure 1. How the components of this idea connect

How the mechanism works, step by step

First, the order management system (OMS) estimates the amount of volume that will arrive at the top of the book before the order is likely to be cancelled. This estimate is derived from recent order‑flow statistics – the rate of market orders hitting the opposite side, the rate of cancellations ahead in the queue, and the typical replenishment speed of the same‑side limit orders.

Second, the OMS monitors the mid‑price trajectory after each fill. The mid‑price is recorded at the exact timestamp of the fill and then sampled at a set of forward horizons (e.g., 100 ms, 500 ms, 1 s). The movement of the mid‑price relative to the fill price provides a direct measurement of the adverse‑selection component that the fill has incurred.

Third, the system computes the realised spread for each execution. Rather than using the quoted half‑spread at the moment of order entry, it subtracts the actual execution price from the prevailing mid‑price at the chosen forward horizon. This realised spread can be negative if the price moves unfavourably.

Fourth, the desk segments the execution data by market conditions that are known to affect queue risk: order‑book imbalance (the difference between buy‑side and sell‑side depth), realised volatility over the last few seconds, and the venue (primary exchange versus dark pool). Each segment yields a different distribution of realised spread and adverse‑selection loss.

Finally, the desk contrasts “missed fills’’ – situations where the order was cancelled before it could capture a small spread – with “toxic fills’’ – executions that were followed by a large adverse price move. The comparison highlights whether the opportunity cost of a missed fill is outweighed by the risk of a toxic fill.

A worked example with real numbers

Consider a market‑making strategy that places a 1 lot limit sell order at the best ask on a highly liquid equity. The quoted half‑spread is 0.5 ticks (0.01 % of price). Over a ten‑second observation window the order is refreshed every 200 ms, and the following sequence of events is recorded.

The order fills nine times at the quoted price, each fill earning a realised spread of +0.5 ticks. After each of those nine fills the mid‑price moves sideways or drifts favourably by an average of +0.1 ticks over the next 200 ms, so the net realised profit per fill is roughly +0.4 ticks. The cumulative profit from the nine benign fills therefore amounts to 9 × 0.4 = +3.6 ticks.

On the tenth attempt the order sits at the top of the book for 120 ms before a large market sell order sweeps the depth. The fill occurs at the quoted ask, again earning a quoted half‑spread of +0.5 ticks. However, within the next 300 ms the mid‑price drops by 4 ticks as the market absorbs the aggressive sell pressure. The realised spread for this fill is therefore +0.5 – 4 = ‑3.5 ticks. The net P&L after the tenth fill becomes +3.6 – 3.5 = +0.1 ticks, essentially erasing the profit earned from the previous nine executions.

If the same desk had cancelled the order after the ninth fill, the adverse move would have been avoided, and the realised P&L would have remained at +3.6 ticks. The example illustrates that a single toxic fill can outweigh many small, seemingly benign fills, and that the fill rate alone tells us nothing about the underlying risk.

The same idea on a live price series
Figure 2. Real intraday FX candles from the trading feed Data: live FX feed.

Where it breaks in live markets

In live trading the assumptions that underpin a static fill‑rate metric are constantly violated. Market depth is not stationary; large institutional orders can appear without warning, causing sudden spikes in imbalance and volatility. When the order‑book imbalance swings from a modest 10 % excess buy depth to a 30 % excess sell depth within a few hundred milliseconds, the probability that a passive order will be walked by an aggressive market order rises sharply.

Venue fragmentation adds another layer of fragility. An order routed to a primary exchange may sit in a deep queue, while the same order on an alternative trading system (ATS) may be exposed to a thin order book that empties with a single market order. The same order‑lifetime rule applied uniformly across venues will therefore over‑protect on the exchange and under‑protect on the ATS, leading to unexpected toxic fills on the latter.

Finally, cancellation dynamics are not purely time‑based. Traders on the opposite side may deliberately cancel ahead of a known large order, a practice sometimes called “queue‑jumping’’ or “sniping”. When such behaviour is detected, the estimated volume ahead of a passive order collapses in real time, and the order’s expected adverse‑selection cost spikes. If the OMS does not react to this change, the passive order may be filled just before a price jump, converting a normal fill into a loss‑making event.

The operating path, stage by stage

The first stage is data ingestion. The OMS subscribes to real‑time market‑depth updates, trade prints, and cancellation notices from all relevant venues. Each message is timestamped with sub‑millisecond precision and fed into a rolling window that stores the last 5 seconds of order‑flow statistics.

The second stage is predictive modelling. Using the rolling window, the system continuously updates three key forecasts: the expected volume that will be executed ahead of the order (the “ahead‑volume’’), the probability distribution of mid‑price movement over the next 500 ms, and the likelihood of a cancellation in the queue ahead of the order. These forecasts are generated by exponential‑weighted moving averages and a lightweight Bayesian update that incorporates the latest imbalance and volatility readings.

The third stage is decision logic. The OMS compares the expected realised spread from staying in the queue with the expected adverse‑selection loss derived from the price‑movement forecast. If the net expected value falls below a pre‑defined threshold, the order is cancelled or re‑priced. Otherwise the order remains live, and the system records the decision for later performance analysis.

The fourth stage is post‑trade analytics. After each fill, the OMS logs the execution price, the mid‑price at the fill, and the mid‑price at several forward horizons. These data points are later aggregated to compute realised spread, realised adverse selection, and the cumulative P&L for each venue, imbalance regime, and volatility band.

The final stage is feedback. The aggregated performance metrics are fed back into the predictive models as calibration inputs, allowing the system to adapt to changing market regimes without manual retuning.

Execution and control path
Figure 3. Where the decision is made, checked and confirmed

Controls that act before the damage

A robust control framework must intervene before a toxic fill can materialise. The first line of defence is a dynamic kill‑switch that is triggered not by elapsed time but by a breach of the expected‑value threshold. When the model predicts that the probability‑weighted adverse‑selection loss exceeds the realised spread by more than, say, 0.3 ticks, the order is withdrawn instantly.

The second control is venue‑specific throttling. Orders destined for thin ATS queues are given a stricter expected‑value ceiling than those on deep exchange books. The system also monitors the rate of cancellations ahead of the order; a sudden surge in cancellations raises the estimated ahead‑volume risk and tightens the kill‑switch threshold.

A third safeguard is imbalance‑aware pricing. When the order‑book imbalance exceeds a configurable limit (for example, a 25 % excess of opposite‑side depth), the OMS automatically widens the quoted price by an extra tick, thereby reducing the chance of being filled just before a price swing.

Finally, the desk can employ a “partial‑fill’’ policy that caps the maximum cumulative realised spread per unit time. If the cumulative realised spread reaches a pre‑set ceiling, the system stops sending new passive orders until the recent adverse‑selection losses have been offset. This prevents the accumulation of many small fills that could later be undone by a single large toxic fill.

Control ladder
Figure 4. Warn, reduce, stop — decided before the pressure arrives

How to measure whether it is working

Measurement begins with the realised spread per fill, calculated as the execution price minus the mid‑price at a chosen forward horizon. Aggregating these values across all fills gives the average realised spread, which should be compared against the quoted half‑spread. A persistent gap indicates that adverse selection is eroding the captured spread.

Next, the desk computes the realised adverse‑selection loss, defined as the negative component of the realised spread when the mid‑price moves against the fill direction. Summing this loss across all fills provides a direct estimate of the cost of toxic fills.

Segmentation is essential. By grouping the data by order‑book imbalance (e.g., low, medium, high), by realised volatility (e.g., < 0.5 % s⁻¹, 0.5‑1 % s⁻¹, > 1 % s⁻¹), and by venue, the desk can pinpoint the market conditions under which the controls are most effective or where they need tightening.

A further diagnostic is the missed‑fill versus toxic‑fill ratio. Missed fills are counted when an order is cancelled while still at the top of the book and the mid‑price subsequently moves favourably. Toxic fills are counted when a fill is followed by an adverse move exceeding a predefined threshold (for example, 2 ticks within 500 ms). A ratio below one suggests that the system is being overly aggressive in cancelling orders, potentially sacrificing profitable opportunities.

Finally, the desk should track the cumulative P&L over rolling windows (e.g., 5‑minute, 30‑minute). If the net P&L remains positive while the fill rate declines modestly, the controls are likely preserving value. Conversely, a rising fill rate accompanied by a deteriorating P&L signals that toxic fills are still slipping through.

The portfolio view

From a portfolio perspective, the impact of toxic fills is amplified by position sizing and correlation across instruments. A single toxic fill in a high‑beta stock can generate a loss that outweighs the aggregate spread captured across a basket of low‑beta equities. Therefore, the desk must integrate the execution‑quality metrics into the broader risk‑budget framework.

The first step is to map each instrument’s execution profile onto its contribution to portfolio volatility. Instruments with high realised adverse‑selection loss receive a lower execution allocation, or their orders are routed to venues with deeper queues and tighter controls.

Second, the desk applies a capital‑allocation adjustment that reduces the notional size of passive orders when the aggregate realised adverse‑selection loss for the portfolio exceeds a volatility‑scaled threshold. This dynamic scaling prevents a cascade of toxic fills from eroding the overall risk‑adjusted return.

Third, the portfolio‑level P&L attribution should separate spread capture, adverse selection, and missed‑fill opportunity cost. By doing so, the desk can evaluate whether a strategy’s edge stems from genuine market‑making skill or from a statistical artefact of high fill rates.

In practice, the desk runs daily back‑tests that recompute the realised spread and adverse‑selection loss using the previous day’s market data, then compares the back‑tested P&L against the live P&L. Persistent divergence points to a degradation of execution quality, prompting a review of the control parameters.

The overarching lesson is that execution quality must be measured in the same units as the portfolio’s performance – namely, realised P&L after accounting for adverse price moves. Only then can a prop‑trading desk ensure that a high fill rate is truly a proxy for value creation rather than a veneer masking toxic fills.

Will your current execution monitoring framework detect the hidden cost of a single toxic fill before it erodes a day’s worth of spread capture?


About the research behind this lesson

The seminar frames electronic markets as price-time-priority queues. It separates queue value into spread capture versus adverse-selection cost and the option value of retaining a place in line.

Applied to this lesson: An order lifetime therefore cannot be based on elapsed time alone: the system must reassess whether its queue position, expected spread and adverse-selection risk still justify keeping the order alive.


Two live systems, one desk

PULSE-X — power-packed HFT: high-frequency momentum on XAUUSD and EURUSD. System details · Live account

NIC-X — ultra-low drawdown: displaced-print arbitrage for large capital. System details · Live account

Start now: leave your email and request a free trial — we will send the pricing, the connection route and the trial terms. Pricing

Join the market discussion: Telegram @squawklive

Source: High-Frequency Trading and Modern Market Microstructure

Educational content only. Trading leveraged products involves risk.

Chat with XTRSK

Chat ready

Start a chat and the XTRSK team will be notified immediately.

LEAVE A REPLY

Please enter your comment!
Please enter your name here