Ridge 3 · Investing · Day 42 of 65
Trading: styles, systems and the evidence
The difference between investing and trading, the main styles and methods, the arithmetic every trading system must satisfy, why backtests mislead engineers in particular, and what large studies show about who makes money.
Today you will
- Distinguish investing, trading and gambling by where the return comes from
- Calculate a trading system's expectancy from its win rate and payoff
- Recognize the traps in backtesting a strategy
- Weigh the evidence on how individual traders perform
Trading attracts technical people. It has data, patterns, feedback within minutes and a scoreboard in dollars. It looks like a problem that a good engineer with a laptop should be able to solve. Many try. This lesson describes the activity fairly, gives you the arithmetic for judging any approach, and then sets out what the evidence says about results, so that you can decide with your eyes open.
Investing, trading, gambling
The three differ in where the return comes from.
Investing is owning productive assets, businesses, bonds or property, for the cash they generate over years. The return comes from the economy growing. Everyone who holds can win together.
Trading is trying to profit from changes in price over shorter periods: minutes, days or weeks. The return comes from buying before others buy and selling before others sell. Measured against simply holding the market, every trader's gain is another trader's loss. Before costs, trading is a zero-sum contest. After costs, it is a negative-sum one.
Gambling is taking a bet with a known negative expected value for the thrill of it.
The line between the second and third is thinner than traders like to admit. What separates them is whether the trader has a real, measurable edge.
Styles
| Style | Holding period | Idea |
|---|---|---|
| Scalping | Seconds to minutes | Many tiny profits from the spread and small moves |
| Day trading | Minutes to hours, nothing held overnight | Intraday moves |
| Swing trading | Days to weeks | Short-term swings within a trend |
| Trend following | Weeks to months | Ride sustained moves and cut losers quickly |
| Algorithmic trading | Any | Rules executed by computer |
| Market making and arbitrage | Fractions of a second | Earn spreads and exploit tiny price gaps. Dominated by specialist firms. |
Two ways to choose trades
Fundamental analysis studies the business: its statements, valuation and prospects, as on days 34 and 39. It is the natural method for long holding periods.
Technical analysis studies the price chart itself. Its tools include trend lines, levels of "support" and "resistance" where prices have turned before, moving averages, and momentum indicators. The claim is that patterns in past prices reveal the balance of buyers and sellers.
The evidence is mixed. Academic research has repeatedly documented one effect, momentum: shares that have risen over the past several months have tended to keep rising for a few more, on average. Most other chart patterns have little reliable support once trading costs are included. Technical analysis is widely used, and something widely used and public is unlikely to be a source of easy profit.
The arithmetic of any system
Whatever the method, a trading approach can be described by two numbers.
- Win rate: the share of trades that make money.
- Payoff ratio: the average win divided by the average loss.
Together they give the expectancy, the average result per trade:
Expectancy = (win rate × average win) − (loss rate × average loss) − costs
Traders measure this in units of R, the amount risked on a trade. A system with an expectancy of +0.2R makes, on average, a fifth of what it risks each time.
| Payoff ratio (win ÷ loss) | Win rate needed to break even, before costs |
|---|---|
| 0.5 to 1 | 67% |
| 1 to 1 | 50% |
| 2 to 1 | 33% |
| 3 to 1 | 25% |
Two lessons follow. A high win rate proves nothing: a system that wins 90% of the time and loses ten times as much on the other 10% is a loser. And a low win rate can be profitable if wins are much larger than losses, though few people can stand being wrong most of the time.
Today's lab simulates 300 traders using the same system. Start with the default, a 45% win rate, wins 1.2 times the size of losses, and modest costs. The expectancy is slightly negative, about minus 0.06R. After 200 trades, about four in five of the traders are behind. And about one in five is ahead, purely by chance. Each of those lucky traders has a real track record of profit from a losing system.
That is the central difficulty of trading. Over a few hundred trades, luck and skill are almost impossible to tell apart, both for an observer and for the trader.
Sizing and survival
Suppose you do have an edge. You can still go broke through sizing.
Losses are not symmetrical. After a fall of 20% you need a gain of 25% to recover. After 50%, you need 100%. After 80%, you need 400%.
In the lab, set a strong system: a 55% win rate with wins 1.5 times losses. Risking 2% of the account per trade, nobody among the 300 traders loses half their money. Risk 15% per trade with the same edge, and about one in five loses half the account at some point along the way.
This is why professional traders commonly risk 1% or less of their capital on any single trade. A formula known as the Kelly criterion gives the theoretical maximum share to risk for a given edge, and practitioners typically use a fraction of it, since the edge is never known precisely.
The other tools of risk control are plain. A stop-loss sets the exit before the trade is made. A daily loss limit stops trading on a bad day. And a rule against adding to losing positions prevents one mistake from growing.
Backtesting, and why engineers are at risk
A backtest runs a set of rules over historical data to see how they would have done. It is an obvious thing for a programmer to build, and it is full of traps.
- Overfitting. Try enough rules and parameters and some combination will fit the past beautifully by chance. It has learned the noise. An economist's line applies: torture the data long enough and it will confess to anything.
- Look-ahead. Using information that was not available at the time, such as a closing price to decide a trade made earlier that day.
- Survivorship. Testing only on companies that exist today, leaving out the ones that went bankrupt.
- Ignored costs. Spreads, slippage and the fact that your own orders move prices. Many strategies are profitable before costs and none after.
- Too few trades. Thirty trades prove nothing either way.
The defenses will be familiar from machine learning. Hold back data the strategy has never seen and test on it once. Prefer simple rules with few parameters. Include pessimistic costs. Then trade with very small amounts for months before believing anything.
What the evidence shows
Several large studies have had access to every trade made by every individual in a market.
The results do not say that nobody wins. They say that winners are rare, that they are hard to identify in advance, including by themselves, and that the typical individual would have done better holding an index fund.
Who does make money
Some firms earn large, steady trading profits. The best known is the Medallion fund of Renaissance Technologies, which by published accounts returned about 66% a year before fees over three decades. It employs hundreds of mathematicians and physicists, runs on proprietary data and infrastructure, limits its own size, and has long been closed to outside investors.
Market-making firms profit from speed, measured in millionths of a second, and from scale.
These are the counterparties on the other side of an individual's trade. They have better data, lower costs, faster execution and more capital. An individual's possible advantages are few: patience, the freedom to do nothing, and the ability to hold small or obscure positions that are too small for institutions to bother with. Almost none of those advantages apply to day trading.
If you still want to try
Many people will, and a small, controlled experiment teaches a great deal.
Rules for a trading experiment
- Separate the moneyUse a fixed sum you can lose entirely. Long-term savings stay untouched.
- Write the rules firstEntry, exit, size and maximum loss, before any trade.
- Keep it smallRisk 1% or less per trade. No margin and no options at the start.
- Record everythingEvery trade, with costs, in a spreadsheet.
- Compare with the indexAfter a year, did you beat simply holding a market fund, after costs and tax?
- Set an endDecide now what result means you stop.
If after a year and a few hundred trades you are ahead of the index after all costs, you may have something. If not, you will have paid a modest fee for a lesson that many pay far more for.
Lab · 10 min
Playground
This playground needs JavaScript.
Try these
Founder’s call · 5 min
The backtest
You have written a trading algorithm. After tuning fourteen parameters against five years of price data, the backtest shows a return of 80% a year with small losses.
Quiz · 5 min
Check your understanding
Workbook · 30 min
Your position on trading
Decide where you stand, in writing.
Saved in this browser as you type. Everything you write is collected in your workbook.
Key terms
- Day trading
- Buying and selling within the same day, holding no positions overnight.
- Technical analysis
- Choosing trades from patterns in past prices and trading volume.
- Momentum
- The tendency of assets that have recently risen to continue rising for a time, and of those that have fallen to continue falling.
- Expectancy
- The average profit or loss per trade of a trading system, after allowing for its win rate, payoff and costs.
- Position sizing
- Deciding how much capital to risk on a single trade.
- Stop-loss order
- An order to sell if the price falls to a set level, used to limit a loss.
- Backtest
- A simulation of how a trading rule would have performed on historical data.
- Overfitting
- Tuning a model so closely to past data that it captures noise and fails on new data.