High Frequency Trading: How It Really Works
· 10 min read
Separating myth from mechanics
High frequency trading (HFT) is often described as either a sinister front-running machine or a heroic liquidity provider. Neither caricature is useful. HFT is best understood as a set of automated strategies that trade very frequently, hold positions for seconds or less, end the day with little or no inventory, and compete primarily on speed, cost and the quality of short-horizon predictions. Its profits per trade are tiny; its edge comes from doing the same thing correctly millions of times.
Regulators broadly capture this in their definitions. Under MiFID II in Europe and the UK, high-frequency algorithmic trading is identified by infrastructure designed to minimise latency (co-location or proximity hosting), system-determined order initiation without human intervention, and high message rates. Firms meeting the definition face specific requirements around record-keeping, testing and risk controls.
The main strategy families
Electronic market making. The largest category by volume. The firm continuously quotes bids and offers, aiming to earn the spread and exchange rebates while keeping inventory small. The central problems are adverse selection (being filled just before the price moves against you) and inventory risk. Successful market makers constantly adjust quotes based on order-book imbalance, recent trades, correlated instruments and their own inventory.
Statistical and cross-asset arbitrage at short horizons. Futures, ETFs and their underlying baskets, or the same stock listed on several venues, are linked by near-deterministic relationships. When an index future moves, the constituent stocks should follow within milliseconds. Firms that detect and act on the move first capture the temporary discrepancy.
Latency arbitrage. A subset of the above in which the edge comes almost entirely from seeing a price change on one venue and trading on another venue before its quotes update. This is covered in detail in a separate article in this series.
Short-horizon directional prediction. Models using order-flow imbalance, queue dynamics, trade signs and microstructure features to predict the next few ticks. Holding periods are short and position sizes are small; the signal decays quickly.
Event-driven speed trading. Reacting to machine-readable news, economic releases or exchange announcements faster than other participants.
The technology stack
HFT is an engineering discipline as much as a financial one. A typical stack includes:
- Co-location: servers placed inside or next to the exchange's data centre to minimise distance. Exchanges sell co-location and are generally required to offer it on equal, transparent terms.
- Direct market data feeds: raw exchange feeds (for example ITCH-style protocols) rather than consolidated feeds, parsed in microseconds.
- Low-latency networks: microwave and millimetre-wave links between major trading centres such as Chicago and New Jersey or London and Frankfurt, because signals travel faster through air than through glass fibre.
- Hardware acceleration: FPGAs and specialised network cards that handle parsing, risk checks and order generation in hardware, often in well under a microsecond.
- Kernel bypass and tuned software: C++ or similar, avoiding operating-system overheads, memory allocation on the hot path and unpredictable garbage collection.
- Precise time synchronisation: regulators require accurate timestamps, and firms need them to measure their own latency.
Speed is relative. Being fast in absolute terms is worthless if a competitor is faster. This creates an arms race in which marginal improvements of nanoseconds can determine whether a strategy makes money.
The economics of an HFT market maker
Suppose a stock trades at 100.00 bid / 100.01 offer. A market maker posts on both sides. If it buys at 100.00 and sells at 100.01, it earns one cent per share, plus any maker rebate, minus exchange fees and clearing costs. Multiply by millions of shares a day and the business can be substantial.
The problem is that fills are not random. The market maker is most likely to be hit on its offer just before the price rises, because the buyer may know something. Revenue per trade must exceed the average adverse-selection loss. In the academic literature this is formalised through models such as Glosten-Milgrom and Kyle, and in practice through metrics such as markouts: the profit or loss on each fill measured at fixed intervals afterwards (for example 1ms, 100ms, 1s and 10s). Negative markouts signal toxic flow and prompt the firm to widen quotes or step back.
Queue position matters as well. On a price-time priority exchange, orders at the same price are filled in the order they arrived. Being first in the queue means you are filled by uninformed flow; being last means you are often filled only when a large, informed order sweeps the level. Much of HFT engineering exists to win queue position.
Risk controls
Because HFT systems act without human intervention, pre-trade controls are essential. Typical controls include maximum order size, maximum position, maximum message rate, price collars that reject orders far from the market, loss limits that halt trading, and kill switches that cancel all resting orders instantly. Regulators require such controls under MiFID II RTS 6 and, in the US, the SEC Market Access Rule (Rule 15c3-5).
The 2012 Knight Capital incident is the standard cautionary tale: a deployment error activated legacy code that sent a flood of unintended orders, producing a loss of roughly \$440 million in about 45 minutes. The lesson is that deployment, configuration management and real-time monitoring are part of the strategy, not separate IT concerns.
What HFT does to markets
The academic evidence is mixed but reasonably consistent on several points. HFT market making has coincided with narrower quoted spreads and lower trading costs for small orders in many markets. Price discovery across related instruments has become faster. At the same time, liquidity supplied by HFT can be fleeting: it may withdraw during stress, as studies of the May 2010 Flash Crash and later mini flash crashes highlight. Latency arbitrage has been described by Budish, Cramton and Shim as a tax on liquidity providers arising from continuous-time limit order books, motivating proposals such as frequent batch auctions and speed bumps like those used by IEX.
Can an individual do HFT?
Realistically, no, at least not in the competitive sense. The costs of co-location, direct feeds, specialised hardware, exchange memberships, clearing and regulatory compliance run into millions a year, and the incumbent firms have years of accumulated engineering. What individuals and small teams can do is study the field: work with historical order-book data, build an event-driven simulator, model queue position and fill probabilities, and measure markouts. That skill set is valued by trading firms and transfers well to execution research at asset managers.
Building a research simulator
A credible HFT research environment needs full-depth order-book data with exchange timestamps, a matching-engine simulator that respects price-time priority, a latency model for both market data and order submission, and a fee model. The hardest part is modelling your own impact: in historical data, your hypothetical order was not there, so you must estimate how it would have changed queue position and fills. Simple backtests that assume fills at the touch whenever the price trades there overstate performance dramatically.
Key takeaways
HFT is a low-margin, high-volume business built on speed, short-horizon prediction and relentless cost control. Market making dominates, adverse selection is the core economic risk, and infrastructure and risk controls are as important as the models. Its effect on markets is broadly positive for everyday trading costs but raises genuine questions about fairness in the speed race and the reliability of liquidity under stress.
Frequently asked questions
Is HFT the same as algorithmic trading? No. Algorithmic trading includes any trading where a computer decides order parameters, such as execution algorithms that slice a pension fund's large order over a day. HFT is a subset characterised by very low latency, high message rates and very short holding periods.
Does HFT front-run investors? Illegal front-running means trading ahead of a client's order using knowledge of that order. HFT firms generally do not have access to client orders. However, some strategies infer the presence of large orders from public market data, such as repeated child orders from an execution algorithm, and trade in the same direction. This is legal but raises costs for large investors, which is why execution algorithms randomise sizes and timing and why some investors use venues and order types designed to reduce information leakage.
How profitable is HFT? Industry-wide revenues vary with volatility and volume; they tend to rise in volatile markets when spreads widen and volumes surge. Profit per share is tiny, and margins have compressed as competition and infrastructure costs have grown, which has driven consolidation among firms.
What happens to HFT liquidity in a crisis? Many HFT market makers reduce size or widen quotes when volatility spikes, because adverse-selection risk rises. Some continue to provide liquidity profitably at wider spreads. Unlike traditional designated market makers, most HFT firms have limited or no obligation to quote, although exchanges offer incentive schemes with quoting requirements.
Careers in HFT
HFT firms hire three broad profiles. Quant researchers build short-horizon models using statistics and machine learning on enormous datasets. Software engineers write latency-critical C++ and build infrastructure for research, simulation and production. Hardware and network engineers design FPGA logic and low-latency networks. Interviews typically test probability, algorithms, systems knowledge and, for engineers, deep understanding of computer architecture, caches, memory and concurrency. The culture is often closer to a technology company than a traditional bank, with small teams and direct links between work and P&L.
Measuring performance in HFT
Standard metrics such as annual Sharpe ratio are less informative for HFT because daily returns are often consistently positive with very high Sharpe ratios. Firms focus instead on P&L per share or per contract, markouts at multiple horizons, fill rates, queue position at fill, adverse-selection costs, latency distributions (especially tail latency at the 99th and 99.9th percentiles), and capacity: how P&L changes as size increases. Monitoring these continuously reveals when a competitor has become faster or when a signal is decaying.
Key terms
Co-location: placing servers in an exchange data centre. Direct feed: an exchange's raw market data feed, faster than consolidated data. Markout: P&L on a fill measured at a fixed time afterwards. Adverse selection: losses from trading with better-informed counterparties. Queue position: an order's place among resting orders at the same price. Price-time priority: matching rule that fills the best price first, then the earliest order. FPGA: programmable hardware used for ultra-low-latency processing. Kill switch: control that cancels all orders and halts trading instantly. Maker rebate: payment from an exchange for adding resting liquidity. Tail latency: the slowest response times, such as the 99.9th percentile, which matter more than averages in races. Message-to-trade ratio: the number of order messages per executed trade, monitored by venues and regulators.
Practitioner checklist
Before using any of the ideas above with real capital or in a published analysis, work through a short, written checklist. First, fix the conventions: currency, return frequency, benchmark, risk-free rate, sampling window and whether returns are arithmetic or logarithmic. Two people calculating "the same" metric with different conventions can produce numbers that look contradictory but are simply not comparable.
Second, make the data point-in-time. Every price, filing, factor value and benchmark constituent should be stored with the time at which it was genuinely available. Survivorship bias, restated fundamentals and look-ahead in rolling statistics are the most common reasons historical results fail to repeat.
Third, include costs and constraints from the start. Commissions, bid/ask spreads, market impact, borrow fees, financing, taxes and capacity limits belong inside the model, not in a footnote. Show gross and net results together and stress the cost assumptions upward.
Fourth, quantify uncertainty. Report confidence intervals or bootstrap ranges rather than a single number, keep a log of every variant tested, and hold back a final out-of-sample period that is only touched once. If a result disappears under a small change in window length, threshold or execution delay, treat it as fragile.
Finally, define in advance what would make you stop: a breached loss limit, a structural change in the market, persistent divergence between expected and realised costs, or evidence that the original hypothesis no longer holds. Good quantitative practice is as much about knowing when a method has stopped working as it is about finding one that worked in the past.
Educational purpose only. This article is general education, not personalised investment, financial or career advice. Verify fees, programme details and regulatory rules with the official source before acting.
Educational content only, not investment advice.