Flow, Microstructure & Execution
Matching Algorithms, Queue Position and the Roll
You are filled according to a published algorithm, not by arriving first, and which algorithm governs your contract changes your entire passive strategy.
A resting order does not get filled because it was there first. It gets filled according to the matching algorithm the exchange publishes for that specific product, and CME runs several. Most traders never look this up, and it determines everything about whether passive execution works for them.
FIFO and pro-rata are different games
FIFO is pure time priority: the first order at a price is the first filled. It governs the markets most traders use, including the equity index futures and Treasury futures. Several other markets, particularly short-term interest rate products and many options, use pro-rata or threshold pro-rata variants, in which allocation depends on your order's size relative to everything else resting at that price, sometimes with a minimum allocation to the first order in and a separate carve-out for a designated market maker.
This is not trivia, it inverts your strategy. Under FIFO, queue position is the asset. Being early at a price is worth real money, and joining the back of a two-thousand-lot queue means you will only be filled when the price is about to trade through you, which is the worst possible fill. Under pro-rata, time does not protect you and size does, so quoting large is how you get volume at all, which also means a displayed book means something different. Reading a pro-rata book as if it were FIFO will make you systematically wrong about fill probability.
Stops are not what people think they are
A stop order is not resting protection at the exchange. It is an instruction that converts into a market or limit order when a trigger price trades. In a fast move, a stop-market is filled at the next available price, which in a gap is arbitrarily far from your level. A stop-limit protects your price and abandons certainty of execution, which means in the move you were protecting against, it may not fill at all.
Both behaviours are correct and both are dangerous in different scenarios. The point is to choose deliberately. Accounts that are destroyed by a gap generally chose by accepting a platform default, and discovered the semantics afterwards.
Implied orders mean the book you see is not the book
Globex generates implied orders between outright and calendar spread books. Implied IN builds a spread quote from the two outright legs; implied OUT builds an outright quote from a spread quote plus one outright leg. Three consequences: the liquidity you can access in a calendar spread is larger than the spread book displays; you can be filled by an order that was never entered in your book; and your resting outright can be taken out by a spread trader who never looked at your ladder. Any model of available liquidity built from one visible book understates it, and any model of your own fill risk built the same way understates that too.
The settlement window
Daily settlement prices are not the last trade. They are calculated from trading in a defined window specified in the contract rules. Because variation margin is computed off that print, a large amount of risk-management and index-tracking flow is forced into it, which makes those few minutes both the most liquid and the most structurally biased of the session. Knowing the exact window for your contract is basic operational competence, and it is written down.
0.25 pt = $12.50
one tick in the S and P 500 future. The entire budget a passive execution strategy is competing over
Rolling, done properly
- Trade the calendar spread as one instrument, always. Legging a roll in a liquid contract to save half a tick risks several ticks of flat-price exposure to earn it.
- Liquidity migrates on a schedule, not a gradient. In equity index futures the migration happens around the Thursday a week before the third-Friday expiry, and open interest flips over a day or two. Before it the deferred book is thin; after it the front book is thin.
- Roll with the crowd, not cleverly early or late. The marginal liquidity in the final sessions of an expiring contract is provided by people who are only there because you are.
- Check what the roll does to your margin before you do it. The spread credit exists only while both legs are live. Fund to the post-roll outright requirement.
- For physically delivered contracts, roll before first notice day, not before last trading day. Those are different dates and the first one is the one that can assign you a cargo.
- Pre-rollfront contract liquid, deferred thin
- Roll windowspread book deepest, OI migrates over a day or two
- Post-rolldeferred is now the front; old contract liquidity is residual
- Spread credit lapsesmargin steps up to the outright requirement
Matching algorithms, implied order mechanics, settlement windows and order type semantics are all published exchange rules. Verify them in the current rulebook for your specific contract, because exchanges do change matching algorithms and window definitions, and the change is announced in a notice most traders never read. That queue position carries real economic value under FIFO is well documented in market microstructure research and is not in serious dispute.
Key takeaways
Educational content only, not financial advice. Trading and investing carry real risk of loss, including your entire capital. Do your own research and consult a licensed professional before making financial decisions.
This is one lesson of 541.
The whole Foundation is free — 16 subjects, beginner to advanced. Sign in to track what you have read, take the end-of-module quizzes, and use the terminal.