Commodities course · Section 5: Commodity Strategies and Backtesting
Trend Following in Commodities: Turtle Traders and Donchian Breakouts
Why commodities trend, how the Turtle traders' Donchian breakout rules worked, why long and short trades behave differently, and how to test it yourself.
Advanced6 min read·6:55 video·Lesson 20 of 26·quiz: 4 questions
▶ Video lesson · 6:55Watch on YouTube ↗
On this page +
Trend following buys markets making new highs and sells markets making new lows, then holds while the move continues; it is the oldest systematic approach in commodities. The best-known version is the Turtle traders' Donchian channel breakout from the 1980s: enter on a 20- or 55-day breakout, size each position by volatility, and exit on a shorter breakout the other way. It typically loses on more trades than it wins and depends on a few large trends, so it needs discipline, diversification and patience.
Why commodities trend
- Slow supply response. When prices rise, it takes years to open mines and fields and at least a season to plant more crops, so shortages persist and prices keep climbing. When prices fall, producers often keep pumping or mining to cover costs, so gluts persist too.
- Inventory feedback. Low inventories push the curve into backwardation, which gives long positions positive roll yield, and high prices eventually ration demand. These processes take months.
- Gradual information and herding. News about harvests, demand and policy arrives piece by piece, and investors react at different speeds.
- Hedging pressure. Producers and consumers hedge in predictable ways that can add to moves.
Academic research supports the idea. Moskowitz, Ooi and Pedersen's 2012 study "Time Series Momentum" found that a market's own past returns tended to predict its future returns across a broad set of futures markets, including commodities. A later paper by Hurst, Ooi and Pedersen examined trend-following over roughly a century of data. Both also show that results vary by period, with long stretches of flat or poor performance.
Richard Donchian and the channel breakout
Richard Donchian, often called the father of trend following, ran one of the first public managed futures funds and popularised simple breakout rules, such as buying when price exceeds its highest level of the previous four weeks. The Donchian channel, the highest high and lowest low of the last N days, is named after him.
The Turtle experiment
In 1983 the commodity trader Richard Dennis and his partner William Eckhardt disagreed about whether trading could be taught. Dennis recruited a group of trainees, the "Turtles", taught them a complete rule-based system, and gave them money to trade. The rules were later published by former Turtles and others. In summary:
- N: the 20-day average true range, a measure of volatility.
- Unit size: 1% of equity divided by (N x dollars per point), so a 1-N move changes equity by about 1%.
- System 1: enter on a 20-day breakout (skipping the signal if the previous System 1 breakout would have been a winner); exit on a 10-day breakout the other way.
- System 2: enter on a 55-day breakout; exit on a 20-day breakout the other way.
- Stop: 2N from entry.
- Pyramiding: add one unit for every 1/2 N move in your favour, up to 4 units per market, moving all stops to 2N from the latest entry.
- Portfolio limits: maximum 6 units in closely correlated markets, 10 in loosely correlated markets and 12 in one direction.
Example
Account $100,000, so 1% = $1,000. WTI crude has N = $2.00, and you trade micro WTI (100 barrels, $100 per $1). One unit = 1,000 / (2.00 x 100) = 5 micro contracts. Crude closes at a new 55-day high of $82.00: buy 5 MCL, stop at 82.00 - 2 x 2.00 = $78.00. Price rises; you add 5 more at $83.00, $84.00 and $85.00 (every 1/2 N = $1.00), for 20 contracts in total, and move every stop to 2N below the last entry: $81.00. If price fell straight to $81.00, the four units would lose (1 + 2 + 3 + 4) x 500 barrels = $5,000, or 5% of equity. Pyramiding builds a big position in a winning trend, but it also increases the money at risk until the stop moves up. You exit when price closes at a 20-day low.
Long trades vs short trades
In commodities, the long and short sides of a trend system tend to behave differently. In general terms:
- Upside moves can be sudden. Supply shocks, weather events and wars can cause sharp spikes, which favour longs already in position and hurt shorts badly.
- Downtrends often grind. Gluts build gradually as inventories rise, so falls can be slower and choppier.
- Roll yield differs by side. Tight markets in backwardation reward longs; oversupplied markets in contango reward shorts.
- Short squeezes. Crowded short positions can be forced to cover all at once, as the nickel squeeze in 2022 showed.
These are tendencies, and the balance varies by market and period. The practical rule is to test the long side and the short side separately rather than assume they are equal. The DanioX commodity backtest page lists long and short trades for several well-known strategies, including the Turtle rules and a 20-day trend breakout, so you can see how the two sides behave instead of taking it on trust. DanioX also runs a related 20-day breakout for crypto, explained on the trend signals page.
Why trend following is hard to live with
- Many small losses. In sideways markets, breakouts fail repeatedly ("whipsaws").
- Giving back profits. Exits wait for a 10- or 20-day reversal, so a big chunk of open profit is returned at the end of every trend.
- Long drawdowns. Months or even years can pass with little progress, and the next big trend may come in a market you were tempted to drop.
- It needs many markets. You cannot know which market will trend, so you need a spread of them, sized by volatility, as the diversification lesson explains.
Risk
Do not judge a trend system on a few weeks of results. A sequence of ten or more losing trades in a row is a normal event for a strategy that wins less than half the time, and the risk of ruin lesson shows how to size so that you survive it.
How to test a breakout system yourself
- Choose a universe of liquid markets across metals, energy, grains, softs and livestock.
- Use adjusted continuous daily data and decide how you handle rolls.
- Write exact rules: entry, initial stop, exit, sizing and portfolio limits.
- Include realistic costs: commissions, slippage and roll costs.
- Fix the rules before testing, then evaluate on years and markets you did not use to design them.
- Look at results by market, by side and by year, not just the total.
The backtesting lesson covers each step in detail, and the methodology page explains how DanioX approaches its own tests.
Pro note
Many variations exist: different breakout lengths, moving-average crossovers, volatility filters, time exits. Testing dozens of variations and picking the best is a form of curve-fitting. Prefer a simple rule that works reasonably across many markets and parameter values over a complex one that looks perfect on one history.
Key takeaways
- Commodities trend partly because supply responds slowly and inventories feed back into prices.
- The Turtle rules: enter on 20- or 55-day breakouts, stop at 2N, exit on 10- or 20-day opposite breakouts, size each unit by volatility.
- Trend following usually has more losing trades than winners and relies on a few large trends to pay for them.
- Long and short trades behave differently in commodities because of supply spikes, roll yield and squeezes; test each side separately.
- Results vary by decade and include long flat or losing periods; diversification and patience are part of the method.
Quiz: check what you learned
0/4 answeredAnswer every question to finish the lesson. Wrong answers are fine: read the explanation and try again.
⚠ Not financial advice — educational signals only. Read the disclaimer.