中文
Trading on your own · Getting better

Reading a backtest

A backtest replays rules on past prices. What decides the result is not how often a trade wins but what it wins against what it loses, after costs, over many trades.

The win rate it needs

From the average win and loss

Breakeven win rate = average loss ÷ (average win + average loss)
  • Win $10, lose $90: it needs 90% to break even
  • A high win rate with large losses is the usual shape of selling premium

Expectancy

What an average trade makes

Expectancy = win rate × average win − loss rate × average loss
  • Below zero, more trades only lose more
  • Read it after costs

What costs take

Per trade, opened and closed

Cost = slippage per contract × contracts × 2 × 100 + fee × contracts × 2
  • A two-leg spread, one contract a leg, at $0.02 slippage: $8 in slippage
  • Fees add $2.60 at $0.65 a contract, $0.16 at $0.04
  • Against a $25 credit, that is a third to 40%

How fills are counted

Many published backtests fill every trade at the mid-price with no slippage, which no trader gets. Check what a test assumes: the mid, the bid and ask, or the trades printed; how much slippage per leg; whether a target fills at its level or at a better price. Build Strategy fills each leg at its 1-minute trades after the decision, less a slippage per contract, and a target at its own level.

Fitting the past

Trying many settings and keeping the best one finds the settings that suited that stretch of prices, often by chance. Test the chosen settings on a later period they were not picked on; prefer rules with few settings that still work when each is moved a little.

The path, not just the end

Two tests can end at the same return with very different falls on the way. Look at the largest drawdown, the longest losing streak and how long the account stayed below its high: those are what you would have to sit through. The sample-size limits in the lesson before this one apply too.

Worked example

A 75% win rate that lost money

  1. A sample strategy, tested 2025-12-01 to 2026-11-30: SPY puts expiring the same day, sold as a spread at 0.20 delta, $5 wide; half the credit taken, a stop at twice the credit, closed at 15:45; $0.02 slippage and a $0.04 fee per contract.
  2. 163 trades, 76.1% won. The average win was $10.73 and the average loss $77.51.
  3. Breakeven win rate: 77.51 ÷ (10.73 + 77.51) ≈ 88%. At 76.1%, each trade lost about $10.4 on average.
  4. Result: −$1,692 on $10,000, with $26 in fees. The rule is a common example, not one of our strategies.

Quiz

  1. A rule's average win is $50 and its average loss $150. What win rate does it need to break even?

  2. A test wins 60% of trades: +$100 on average when it wins, −$200 when it loses. What does an average trade make?

  3. A backtest fills every trade at the mid with no slippage. What does that do to its results?

For learning only, not investment advice. Options can lose their whole value.