PART XIII · Chapter 107 · 605 / 660

Lesson 605. Market making, bid-ask spreads and adverse selection: what high-frequency trading means for individual investors

Chapter 107. Regularized Regression, Factor PCA, Time-Series Pitfalls, Microstructure & Kelly

In an order book, the price at which someone will buy and the price at which someone will sell are always a little apart. That difference, the spread, was treated as a trading cost in Lessons 017 and 477, and Lesson 585 put half of it into the one-way cost. Lesson 586 looked, from the side of the person placing the order, at adverse selection: a limit order fills more readily when the price is about to move against it.

This lesson looks at the same thing from the side that posts the quotes, the market maker. With a synthetic order flow, it computes why the spread is not 0 and why it widens when orders from traders with information are mixed in. It then sets out what high-frequency trading means for individual investors, connecting latency, execution-quality disclosures and order types to the fill assumptions of a backtest.

No real quote or trade data are used. The market maker in this lesson is a hypothetical example for teaching, made to show the concepts in numbers, and the lesson describes no trading method.

1. Quotes, spread, depth and the market maker's profit and loss

The bid is the highest price posted to buy now, and the ask is the lowest price posted to sell. Their average is the midpoint, and their difference is the spread. The quantity posted at each price is called depth; when depth is thin, a large order fills across several prices (the market impact of Lesson 585).

A market maker keeps quotes posted on both sides and takes the other side of incoming orders. Its profit and loss can be split into three parts. The first is the half spread earned on each trade. The second is the adverse-selection loss: the counterparty knows more, so the price moves against the market maker after the fill. The third is the inventory risk, which arises when inventory piled up on one side changes in price. There are also processing costs such as systems and exchange fees.

Treating the spread as the whole of the trading cost misses this structure. If the spread is wide because of adverse selection, a backtest that assumes it earns half the spread by posting a limit order inside the spread takes on that same adverse selection in full.

2. Experiment design: an order flow mixing informed and uninformed trades

Glosten and Milgrom (1985), "Bid, Ask and Transaction Prices in a Specialist Market with Heterogeneously Informed Traders," is the classic on this problem. It is a model in which the spread arises because the market maker cannot tell traders with information apart from the others. This lesson computes the idea in a simplified form with fixed-seed synthetic data.

Just before each order arrives, the value moves up or down by 0.10% of the price, and only informed traders know the direction. With probability π, the informed-trade share, an incoming order comes from an informed trader, who buys when the value rises and sells when it falls. The remaining orders buy or sell with equal probability. The hypothetical market maker always quotes the midpoint ± half the spread, with the same spread throughout, and takes every order (a hypothetical teaching rule). After the fill, the value is revealed and becomes the next midpoint.

For one order, the market maker's result is half the spread minus the amount by which the value moved against it after the fill. For uninformed orders the average is 0, and on informed orders it always loses 0.10%. So the spread at which profit and loss is 0 is, in theory, 2 × π × 0.10%. Assumptions: with π = 20%, the average loss per order of 0.2 × 0.10 = 0.02% has to be covered by half the spread, so the breakeven spread is 0.04%.

Each path takes 20,000 orders, and the experiment was repeated over 20 paths with seeds 20265001 to 20265020, set before the lesson was written. The numbers in the text are the medians and ranges of the 20 paths.

3. A larger informed-trade share widens the spread

Informed-trade share Breakeven spread (20 synthetic paths) Theoretical value Result per order at a spread of 0.04%
0% 0.000% (−0.004 to 0.002%) 0.00% 0.020%
10% 0.020% (0.017 to 0.022%) 0.02% 0.010%
20% 0.040% (0.038 to 0.042%) 0.04% 0.000%
30% 0.061% (0.059 to 0.064%) 0.06% −0.010%
50% 0.100% (0.098 to 0.102%) 0.10% −0.030%

The horizontal axis is the informed-trade share, 0% to 50%. The median spread at which profit and loss is 0 rises almost in a straight line, from nearly 0 at 0% to 0.040% at 20% and 0.100% at 50%, almost on top of the theoretical line. The minimum and maximum lines of the 20 paths lie only about 0.003 percentage points above and below the median.

Each 10-percentage-point rise in the share of informed orders widened the breakeven spread by about 0.02 percentage points. A market maker quoting the same spread of 0.04% came out positive per order in flows with an informed-trade share below 20% and negative in flows with a larger share. The spread is close to an insurance premium against the counterparty's information.

This model leaves out inventory risk and processing costs, and assumes that the market maker cannot tell counterparties apart at all. Real spreads contain these parts as well, and the numbers are only examples computed under these synthetic settings. Even on paths with an informed-trade share of 20%, the market maker's inventory at one point piled up to 157 units on one side (median), which shows that inventory risk is not small.

4. Adverse selection measured by the price after the fill, and limit orders

Adverse selection is measured by which way the price moved after the fill. In this model, after an informed order the value always moved 0.10% against the market maker, and after an uninformed order the average move was close to 0. At an informed-trade share of 20%, the average adverse-selection loss per order was 0.020%, which took almost all of the half spread of a 0.04% spread.

The realized spread in execution-quality reports follows the same idea. It compares the fill price with the midpoint some time later to measure what actually remained for the side that supplied liquidity. Kyle (1985), "Continuous Auctions and Insider Trading," modeled the process in which an informed trader splits orders and the information is reflected in the price gradually.

The case of an individual posting a limit buy at the bid is the same calculation. At an informed-trade share of 20%, this order filled with a probability of 60.0% when the value was about to fall and 39.9% when it was about to rise. Even entering by earning half of a 0.04% spread, the average result per fill was 0.000%, and at an informed-trade share of 30% it was −0.011%. This is why a backtest that assumes limit orders "always fill favorably inside the quotes" goes wrong (Lesson 586).

5. What high-frequency trading means for individual investors

High-frequency market makers repeat this calculation in very short units of time. When new information arrives, quotes have to be updated at once, and stale quotes not yet updated get filled first by faster participants. Budish, Cramton and Shim (2015) analyzed how this structure of continuous-quote markets creates a speed race, and proposed as an alternative a method that collects orders over short intervals and fills them together.

This lesson does not cover how to take part in that race. For their own testing, individual investors need to know three things.

  • Latency: the quote on the screen may already have changed by the time an order arrives. Calculations that rely on queue position, the speed of updating quotes or differences of a few milliseconds are fill assumptions that an individual's backtest cannot reproduce.
  • Execution-quality disclosure: the US Securities and Exchange Commission's (SEC) Rule 605 is a monthly report introduced in 2000 so that the execution quality of different market centers can be compared. Amendments adopted by the SEC on March 6, 2024, extend reporting to brokers with many customer accounts and require public summary reports. They also require the time to execution to be measured in units of 1 millisecond or less, and add time intervals for the realized spread and metrics such as the effective spread ÷ the quoted spread. Rule 606 requires brokers to disclose every quarter where they sent customer orders and whether they received payment for them (payment for order flow).
  • Order types: as SEC investor education material explains, a market order does not guarantee the price of execution, and a limit order does not guarantee execution itself. A backtest's fill assumption must state which of the two it assumes.

A figure comparing conditions on two cards. The high-frequency market maker card says it posts quotes on both sides and updates them in very short times, that queue position and latency decide the result, and that it covers adverse selection and inventory risk with the spread. The individual investor card says the quote on the screen may have changed when the order arrives, that a market order does not guarantee the price and a limit order does not guarantee the fill, and that execution quality is checked in Rule 605 and 606 reports.

In short, what high-frequency trading means for an individual investor's testing is this: do not use the fill assumptions of that domain. Results that need assumptions such as fills inside the quotes, the front of the queue or instant cancellation are not results that an individual's account can reproduce.

6. What to write in a backtest

The spread is only part of the cost. A rule that fills with market orders pays half the spread and the market impact (Lesson 585), and a rule that fills with limit orders bears the risk of not being filled and adverse selection. Either way, write the fill assumption in the fill-assumption table of Lesson 586 on two lines, an optimistic case and a conservative case.

The record for this lesson is three lines attached to the fill-assumption table. The first is the order type (market or limit) and its assumption. The second, for limit orders, is the fill condition and how the price move after the fill was reflected. The third is whether this result rests on assumptions that can be reproduced at the order speed of an individual account.

Try it yourself

  1. From the table in section 3, read the breakeven spreads at informed-trade shares of 10% and 30% and compare them with the theoretical values.
  2. Assumptions: the value moves up or down by 0.20% just before each order, and the informed-trade share is 15%. Find the breakeven spread with the formula of section 2.
  3. Assumptions: at a midpoint of 100.00 and a spread of 0.04, a limit buy posted at the bid of 99.98 filled 10 times. In 7 of them the value after the fill turned out to be 99.90, and in 3 it was 100.10. What is the average result per fill?
  4. If you read a broker's Rule 605 report, in which metric would you find how much better than the quote orders were filled, and in which report would you find where orders were sent?

Answers

First, 10% gives 0.020% and 30% gives 0.061%, almost the same as the theoretical 0.02% and 0.06%. The ranges over 20 paths (0.017 to 0.022%, 0.059 to 0.064%) show that even paths of 20,000 orders swing a little with luck.

Second, 2 × 0.15 × 0.20 = 0.06%. The larger the information and the more informed orders, the wider the spread has to be for profit and loss to be 0.

Third, (7 × (99.90 − 99.98) + 3 × (100.10 − 99.98)) ÷ 10 = (−0.56 + 0.36) ÷ 10 = −0.02. The order entered earning half the spread, 0.02, but it filled more often when the value was about to fall, so the average was negative.

Fourth, how much better than the quote is found in price-improvement metrics such as the effective spread ÷ the quoted spread in the Rule 605 report. Where orders were sent and what was paid for them is found in the Rule 606 report. The two reports describe a broker's execution quality; they do not recommend any particular way of placing orders.

Data: synthetic data made with fixed seeds 20265001 to 20265020 (20 seeds, set before the lesson was written). The value just before each order moves ±0.10%, the informed-trade share is 0 to 50%, and each path has 20,000 orders. The description of execution-quality disclosure draws on the SEC press release of March 6, 2024 (Rule 605 amendments), the text of Rule 606, and the SEC's Investor.gov bulletin on order types.

Related lessons