Research-to-production pipeline
∞structuralIdea → backtest → paper trade → live, with risk gates at every step. The pipeline is where most edges die, and where they should die, cheaply, before they cost real money.
The idea
What this shows. An idea reaches live trading through one pipeline: research, backtest, execution, risk, operations. Each handoff leaks edge, and the two deadliest joints are research → backtest (overfit and look-ahead) and backtest → execution (an edge that survived simulation but not real fills). The dashed arc is the point: attributed live P&L is the firm's best research input, so the firm that closes the loop fastest and most honestly out-researches one with better single ideas.
What is the research-to-production pipeline?
It is the path a trading idea takes from hypothesis to live, risk-managed P&L and back again: research → backtest → execution → risk → operations, closed by a loop that turns live results into the next idea. Most ideas are wrong, and the few that are right lose some of their edge at every handoff, so the pipeline has two jobs: kill bad ideas cheaply, and carry the survivors to live trading with as little leakage as possible.
A firm with a great idea and a slow, leaky pipeline loses to a firm with an ordinary idea and a tight one. The edge is rarely a single model. It is the speed and honesty of the loop.
The output of operations, meaning attributed live P&L and the gap between expected and realised performance, is the most valuable research input the firm has, because it is the only data untouched by hindsight. AI tooling has compressed the research and engineering legs, which pushes the differentiator towards the two stages it cannot shortcut: finding a real edge, and not blowing up while deploying it.
Stage 1, Research: finding a candidate edge
Research produces a precisely specified candidate: what you trade, when, why it should work, and how it could fail. It is the hunt for a relationship you believe will persist out of sample, whether a signal, an inefficiency or a structural rebate. Most candidates die here, which is the point.
Good research starts from an economic reason a price relationship should hold. "This pair cointegrates because it is the same risk in two listings" survives; "these tickers correlated last year" does not. The write-up states the instruments, entry and exit logic, horizon, claimed edge per trade, expected trade count and the conditions under which the edge should stop working. Naming the failure mode in advance is what separates research from rationalisation.
The signal in this page's worked example has named origins: order-flow imbalance, measured on real order-book events by Cont, Kukanov and Stoikov (2014), and the micro-price, a high-frequency estimator of the next mid-price proposed by Stoikov (2018). Tooling is notebooks (Python with pandas or Polars), a clean historical store and AI research assistants that screen hypotheses at speed (see machine learning in HFT and what AI changes).
The main killer is overfitting. Generate ten thousand candidates and some will look brilliant by chance. Harvey, Liu and Zhu (2016) tackle the same multiple-testing problem for published return factors, and Bailey and López de Prado (2014) built the deflated Sharpe ratio to correct a backtest's Sharpe for the number of trials behind it. In practice that means the research log must record how many variants you tried. The performance topic exists to tell survivors from the lucky.
Then there is decay. McLean and Pontiff (2016) studied 97 published equity predictors and found returns 26% lower out of sample and 58% lower after publication. Those are monthly-horizon anomalies, not HFT signals, but the direction of the lesson holds: a documented edge gets competed away.
Stage 2, Backtest: testing the edge honestly
The backtest replays the strategy on historical data to estimate whether the edge is real, and how it behaves in risk-adjusted return, capacity and decay. Running it is easy. Running it honestly is the hard part, because a backtest with look-ahead bias, survivorship bias or optimistic fills will conjure an edge that does not exist live.
Every backtest is a set of assumptions about how the market would have responded to your orders. Assume you always filled at the touch, ignore your own impact, or peek at data you would not have had, and you are not testing a strategy. You are writing fiction with a great Sharpe. The three standard sins, each of which you can toggle on the backtest sandbox, are look-ahead bias (using information from the future), survivorship bias (testing only on instruments that still exist) and optimistic fills (assuming prices you would not have got). Together they make almost anything look profitable.
A good backtest produces a distribution and a verdict rather than one number: the risk-adjusted return, the capacity ceiling (how much capital before your own market impact eats the edge) and an estimate of decay. The headline backtest return alone is the cheapest and most misleading number in the firm.
The roles are quant researchers plus backtest and infrastructure engineers. The tooling is a harness that enforces point-in-time data, a fills and cost model, and a market simulator; good historical order-book data (see datasets and tools) is the usual bottleneck.
Stage 3, Execution: capturing the edge without giving it back
Execution is the order logic that turns a paper edge into realised P&L, and for HFT it is the strategy itself. A signal worth two basis points, executed by crossing the spread or by missing the queue, is a loss. The gap between a backtest's "we would have bought here" and the live "we bought there, at this price, this often" is pure execution.
The decisions are passive versus aggressive (maker-taker), queue position and fill probability, and slicing to limit impact. The execution-algorithms topic covers the standard toolkit: VWAP, TWAP and POV, Almgren–Chriss and smart order routing. The same idea executed passively or aggressively can have opposite signs after costs.
The people are execution and low-latency engineers, often with a dedicated execution-research function. The tooling is the low-latency stack, colocation and FPGA where speed gates the edge, messaging protocols (FIX and binary feeds) and a router. In pipeline terms the whole systems topic is the execution leg.
Stage 4, Risk: limits, kill-switches and pre-trade checks
Risk decides how much you can lose and stops you before you lose more: position and loss limits, pre-trade risk checks and kill-switches that pull a strategy automatically when it misbehaves. In HFT it is a real-time circuit in the order path, not a quarterly review.
What ends firms is a fast loss, not a slow one. The textbook case is Knight Capital on 1 August 2012: in the first 45 minutes of trading its router sent more than 4 million orders while trying to fill 212 customer orders, and the firm lost more than $460 million. The SEC charged it with violating the market access rule and imposed a $12 million penalty, the SEC's first enforcement action under that rule (press release 2013-222).
That rule is Rule 15c3-5, adopted in 2010, which requires any broker-dealer with market access, including sponsored access, to run pre-trade financial and regulatory risk controls. In the EU, Article 12 of RTS 6 (Delegated Regulation 2017/589) requires an algorithmic trading firm to have a kill function that can cancel immediately, as an emergency measure, any or all of its unexecuted orders, and to be able to identify which algorithm and which trader or desk sent each order. The UK copy of that text has since been revoked, so UK firms should look to FCA rules instead.
Controls are layered. Pre-trade checks reject orders that breach price, size or rate limits before they leave. In-flight throttles and fat-finger limits cap message rates. A kill-switch flattens and halts on a loss-limit or anomaly breach. They must sit in the order path, independent of the strategy logic that may be the thing malfunctioning, and they should be owned by someone other than the desk running the strategy. See also the market-wide circuit breakers.
For a solo operator this is the stage the going-independent guide warns you not to skimp on. A research edge without a kill-switch is not a business. It is an unexploded liability.
Stage 5, Operations and the feedback loop
Operations runs the live strategy day to day (monitoring, reconciliation, P&L attribution) and closes the loop by feeding what happened back into research. Attribution is the keystone: until you know which part of your P&L was spread capture, which leaked to adverse selection and which was your own impact, you cannot improve the book.
A live strategy drifts. Markets change, the edge decays, competitors crowd in. Decomposing live P&L by source (spread, adverse selection, your own impact, signal alpha, fees and rebates, per symbol, venue and hour) tells you exactly which idea to build next and which hour to stop quoting.
The roles are trade support and operations, plus the desk and researchers who consume the attribution. The tooling is real-time monitoring, reconciliation, an attribution engine, and a data pipeline that aligns your fills to the book state at execution. A firm that closes this loop quickly and honestly out-researches a firm with better individual ideas.
How does AI change the pipeline?
AI compresses the top of the pipeline: code generation, research agents and infrastructure-as-code can turn weeks of research and engineering into days. This is the page's view rather than a measured result. It does not shortcut the two hard stages: finding an edge that survives out of sample, and the risk discipline to deploy without blowing up.
So the bottleneck moves to what AI cannot fake: a hypothesis with real economic content, an honest fills model and a kill-switch that fires. The pipeline got faster at the top and no easier at the bottom, which means AI makes a good pipeline faster and a sloppy one fail sooner. For more, see what AI changes for HFT, and for the one-person case going independent in 2026.
Worked example
One idea travelling the pipeline: a small-team crypto market-making strategy. The numbers are illustrative; what matters is the shape of the loss at each handoff.
Research. "BTC-PERP top-of-book imbalance predicts the next 50ms move; quote around the microprice." It comes with an economic reason and a named failure mode: the imbalance threshold overfits, and there is no real out-of-sample yet. Backtest. Replay six months of L2 data with realistic fills: gross edge bps per trade, about 8,000 trades a day, net Sharpe after fees. That holds only if the fills are realistic and your own impact is modelled; get either wrong and both the edge and the capacity come out inflated.
Execution. Passive, queue-aware quotes. Live fills come in 0.4 bps worse than the backtest assumed, so the net edge drops to bps, still positive. Risk. Inventory limit of BTC, a daily loss limit and an auto-flatten kill-switch on breach. Without an independent kill-switch, one feed glitch ends the account. Operations. After a week live, attribution reads +1.1 bps of spread capture and −0.3 bps of adverse selection, a net +0.8 bps, and the result goes back to research to widen quotes in toxic hours.
Turning that into a currency figure needs a notional per trade, which the example deliberately leaves out. What carries over to any strategy is that each handoff is a place the edge leaks, and the pipeline's job is to leak as little as possible without lying to itself.
Sources
- Bailey, D. H. and López de Prado, M. (2014). "The deflated Sharpe ratio: correcting for selection bias, backtest overfitting and non-normality". Journal of Portfolio Management 40(5), 94–107. doi.org
- Harvey, C. R., Liu, Y. and Zhu, H. (2016). "…and the cross-section of expected returns". Review of Financial Studies 29(1), 5–68. doi.org
- McLean, R. D. and Pontiff, J. (2016). "Does academic research destroy stock return predictability?". Journal of Finance 71(1), 5–32. doi.org
- Cont, R., Kukanov, A. and Stoikov, S. (2014). "The price impact of order book events". Journal of Financial Econometrics 12(1), 47–88. doi.org
- Stoikov, S. (2018). "The micro-price: a high-frequency estimator of future prices". Quantitative Finance 18(12), 1959–1966. doi.org
- SEC (2010). "Risk Management Controls for Brokers or Dealers with Market Access" (Rule 15c3-5), Release No. 34-63241. sec.gov
- SEC (16 October 2013). "SEC Charges Knight Capital With Violations of Market Access Rule", press release 2013-222. sec.gov
- Commission Delegated Regulation (EU) 2017/589 (RTS 6), Article 12, "Kill functionality" (legislation.gov.uk copy of the EU text; the UK version has since been revoked). legislation.gov.uk