Open Family Office Datasets Tickers Strategies Portfolios Research Posts About Changelog

Trading Evolved

Source

Citation. Andreas F. Clenow. Trading Evolved: Anyone Can Build Killer Trading Strategies in Python. Self-published, 2019. ISBN 9781091983786. A book of 25 chapters, about half of it Python code, on backtesting equities, ETFs and futures with Zipline. It has five worked strategies and a guest chapter by Robert Carver. The author is a hedge-fund manager, and the author of Following the Trend and Stocks on the Move. Its title promises "killer" strategies, and the book itself calls them "teaching tools, not production grade models".

Status. Planned. The book's advice on method matches the repo's. Its warning on continuous futures shows a gap: a future's registry entry doesn't say how its series is built. #464 would state it, and build it point-in-time. Its unpaid cash is the gap that #461 closes. None of its strategies would pass the repo's verdict as shown, because none counts its variants or reports an error.

Read. Read on 2026-11-28 from a PDF of the book that the maintainer supplied, with a text layer. Two subagents read:

I checked the quotes and Table 19.1 against the text. The code listings were skimmed, not run. Not read:

Summary

Claim. Anyone can build and test serious trading strategies in Python, with a backtester such as Zipline and sound habits of method.

Method.

Findings, as the book reports them (2001–2018, Table 19.1).

Model Annual return Max drawdown Volatility Sharpe
Trend following 12.12% −25.48% 19.35% 0.69
Curve trading 14.89% −23.89% 18.62% 0.84
Systematic momentum 7.84% −39.83% 16.48% 0.54
S&P 500 total return 5.60% −55.25% 18.92% 0.38
All five models, 20% each (Table 19.2) 14.92% −17.55% 11.81% 1.24

The random-stock runs "almost all" ended with more money than the index, at higher volatility.

Where the claims go beyond the evidence

No variant is counted, and no result is held out. The author warns well against fitting: "Your default way of thinking should be to find ways to reject the rules." He picked parameters "more or less at random", and the trend filter's "were picked rather frivolously". But no chapter read gives the number of variants tried, an out-of-sample split, or a walk-forward test. The five models in Table 19.1 are the ones he chose to show.

No error on any number. Table 19.1's Sharpe ratios have no error. Over 18 years, a Sharpe ratio's error is about 0.24 a year. So most of the models' gaps over the index, and between models, are within the noise. The combined Sharpe of 1.24 comes from a mix chosen with the results in view.

Idle cash earns nothing. The author disregards interest on cash to keep the simulation simple, and says the results "would be a little bit higher" with it. That is the same gap as the repo's (#461).

Inconsistencies between text and code. The trend model's risk factor is 20 basis points in the text and 15 in the code. The curve model's volume cap is 20% in the text and 30% in the code.

The random-stock test has no costs and few runs. It runs 50 times, with no costs, against a cap-weighted index. "Invest with a chimp and you have an 80% chance" is a figure of speech, not a count of the runs.

Credit. The method chapters are candid. The author says "the more you test strategies on a set of time-series data, the more biased your test will be". He calls slippage the assumption that decides the curve model's results. "It would be very easy to change a couple of numbers in the code", and get 50% a year. He uses point-in-time index members "to reduce the effect of so called survivorship bias". And he explains the faults of continuous futures well.

Use in this repo

The method matches the repo's, and the repo enforces it. The book's rules are few rules, a few variations rather than an optimiser, and a test kept apart from the fit. The repo turns them into checks:

The book has the advice but not the checks.

Continuous futures need a stated construction. A future's registry entry says how it rolls only "in words" (units.Contract.roll). The book shows what goes wrong:

Zipline builds each continuation from the data known by each day, and trades actual contracts. #464 would state the roll trigger and the adjustment, and build the series point-in-time, as actions.consistent does for splits. Carver's review gives the roll costs (advanced-futures-trading-strategies.md), and the roll yield is in goldman-roll.md and carry.md.

Cash should earn interest. All of the book's models hold idle cash at no interest, and so does the harness. #461 would pay idle cash the T-bill rate.

The benchmark matters, as the monkeys show. Random equal-weighted picks beat the cap-weighted index mostly by being equal-weighted. That is why the verdict's benchmarks include 1/N beside buy-and-hold (#261). A strategy that beats a cap-weighted index may only be beating its weighting.

Point-in-time index members. The momentum model needs each date's index members, which the repo doesn't have. Its tickers are a fixed list. A strategy on an index universe would need a membership dataset, such as one named in finnhub.md (#281), and the survivorship flag on its prices (#231). #425's first strategies would need this if one trades an index universe.

The book's code isn't for reuse here. Zipline and pyfolio are Quantopian's, and Quantopian closed in 2020 (ml-for-algorithmic-trading.md). The repo has its own harness, costs and metrics. What carries over is the rules, as candidate strategies for #425: the momentum score, the trend model and the curve model. Each would be judged like any other.