Open Family Office Datasets Tickers Strategies Portfolios Research Posts About Changelog

Quantitative Trading

Source

Citation. Ernest P. Chan. Quantitative Trading: How to Build Your Own Algorithmic Trading Business. Wiley Trading, John Wiley & Sons, 2008. ISBN 978-0-470-28488-9. Chan runs a trading and consulting firm. One example uses software from Alphacet, which he says is "a client of my firm". A mismatch: the issue names the second edition (2021). The maintainer supplied the first edition, so this page reviews it. Chapters that the second edition added aren't covered.

Status. Planned. The harness already checks most of the book's pitfalls. Two that it doesn't, bad ticks and limit fills inside a bar's range, are in #439. The book's Kelly rule agrees with soundness check M8.

Read. Read on 2026-11-28 from a PDF that the maintainer supplied, 204 pages with a text layer. Two subagents read the text in full, one half each. I checked the main numbers against the text, and recomputed the Kelly example and the minimum track record. The figures weren't read, and the MATLAB code was read only where an example uses it.

Summary

Claim. An independent trader can run a profitable quantitative business with simple strategies of low capacity. The backtests must avoid the usual biases, and Kelly must size the bets. "The key, it turns out, is capacity."

Method. A practitioner's guide, with worked examples in Excel and MATLAB:

Findings, as the source reports them.

Setting Number Value
Example 3.3, the 10 lowest-priced of the 1,000 largest stocks, 2001 one-year return −42% with data free of survivorship, 388% with survivors only
Example 3.6, GLD/GDX, entry at |z| ≥ 2 and exit at |z| ≤ 1, no costs Sharpe ratio, training and test about 2.3 and 1.5
Example 3.7, Khandani and Lo's mean reversion, 2006 Sharpe ratio the paper's 4.47, Chan's 0.25 before costs and −3.19 after 5 bp a trade
Example 3.8, the same traded at the open Sharpe ratio 4.43 before costs, 0.78 after
A Bollinger rule on ES futures, every 5 minutes Sharpe ratio about 3 before costs, −3 after 1 bp
Example 6.2, SPY, mean 11.23%, sd 16.91%, rate 4% Kelly leverage 2.528, growing at 13.14% a year against 9.8% unlevered
The same, after 19 October 1987, a day of −20.47% leverage that survives a 20% one-day loss about 1, against half Kelly's 1.26
Example 7.2, GLD/GDX cointegrating ADF statistic −3.357, against −3.343 at 5%
Example 7.5, GLD/GDX half-life of the spread 10.0 days

Where the claims go beyond the evidence

Rules of thumb, not tests. The book's guards against data snooping are heuristics: five parameters, 252 points for each, simple models. It applies no correction for the number of trials, and says that its sample rule is "purely on experience". Take one trial with an annual Sharpe ratio of 1. The repo's minimum track record for it is 684 days, about 2.7 years, before any parameter is fitted.

Its own examples show the gap. Chan's replication of Khandani and Lo gives 0.25, not 4.47, and −3.19 after costs. His Bollinger rule goes from 3 to −3 at a cost of 1 bp. The book reports these failures, which is to its credit, but it rests its case on others whose costs are set to zero. The GLD/GDX pair has no costs, and its test year is about one year of daily data.

A pair can break after the book ends. The data stop in early 2008. The book warns that stationarity "is by no means guaranteed", but reports no out-of-sample year for the pair after that.

The case for independent traders is anecdotal. The conclusion rests on traders "in shabby offices or their spare bedrooms" and on Chan's own survival. It gives no data on how many independent traders fail.

Small inconsistencies. Decimalisation is dated 2001 in one chapter and 2003 in another. Example 7.3 refers to "Example 7.1" where it means 7.2. Example 3.4's code computes the hedged Sharpe ratio on the wrong series.

Credit. The book shows its fixes with numbers, and reports the strategies that failed after costs. It tests for look-ahead by truncating the data and comparing positions, the check that pointintime.py runs. It warns that "most strategies performed much better 10 years ago than now", and that today's costs applied to old data flatter the early years.

Use in this repo

Most pitfalls are already checked. Each of Chan's checks has a counterpart in the repo:

Two checks are missing. A bad tick, a return far outside the series' range with no news, can make a backtest. actions.suspect_splits flags only moves near a split ratio. And a limit order filled at a price inside the bar's high and low may not have filled, which "almost always" inflates a backtest. #439 adds both. It flags returns beyond a set number of standard deviations, and fills a limit order only when the price trades through the limit.

Kelly with a drawdown cap is M8's rule. Chan's leverage is the smaller of half Kelly and the leverage that survives the worst historical one-period loss. That agrees with M8 and the Kelly reviews (kelly-criterion.md, kelly-parameter-uncertainty.md). The trailing six-month estimate of the edge has a large error, which M8's shrinkage handles.

Don't subtract the rate twice. Chan subtracts the risk-free rate only from a strategy that pays to finance its positions. A dollar-neutral strategy already earns the rate on its short proceeds. The harness's Sharpe ratio should follow the same rule when it reports a long–short strategy.

Pairs need their tests counted. A pair chosen by its cointegration statistic, from many candidates, is a selected trial. Its ADF statistic of −3.357, just past the 5% value, is the kind that multiple testing would undo. A pairs strategy in the registry should log every pair it tests in the ledger. It should take its hedge ratio from past data only (#137 reviews cointegration).