Chapter 3 of 7All chapters

Part 2 · Test · Chapter 3 of 7

Run your first backtest

Chapter 3 video

Plays from YouTube. Everything in it is also written out below.Open on YouTube
In this video7 parts · 4:50
You’ll need
The strategy from chapter 2, behaving the way you meant.
You’ll end with
A quick backtest you can read — and one you know not to trust yet.
Time
5 min

Do it in Spera as you read

Opens in a new tab. Keep this page beside it and follow the steps.

Open the Builder

A quick backtest runs your strategy over the candles on your chart and reports how it would have done. It takes seconds, so use it every time you change something.

1. Run it

In the Backtest panel, stay on Quick and press Run Backtest. After the first run the button says Run, and there's a re-run icon next to it.

The run uses your Backtest settings: starting balance, fees, slippage and sizing. The defaults are fine for now. Chapter 5 sets them properly.

2. Read the four headline numbers together

Primary metrics shows four numbers. Each one alone can mislead you, so read them together:

MetricIt answersWatch for
Total PnLDid it make money overall?A big number from one lucky trade.
Win RateHow often did a trade win?A high win rate with small wins and huge losses.
Profit FactorGross wins ÷ gross losses. Above 1 is profitable.Barely above 1, so fees can wipe it out.
Max DrawdownThe worst fall from a high point.A drawdown you couldn't sit through with real money.

More metrics has the rest: Sharpe, Sortino, Calmar, CAGR, expectancy, average win and loss, and the number of trades. Reading your results explains each one.

Count the trades

Check Trades first. A strategy that traded eight times hasn't proven anything, however good the other numbers look. Load more candles or use a shorter timeframe until it has enough trades to judge.

3. Look at the curve and the baseline

  • Performance draws the equity curve. A smooth rise is better than one big jump. Look for long flat or falling stretches, which are how it would feel to run.
  • vs Buy & Hold compares the strategy's return with just holding the coin over the same candles, and shows the difference as Alpha. If Buy & Hold did better, the strategy added risk without adding return.

4. Read the trade log

Trade log lists every trade: side, quantity, entry and exit price, PnL, and the Reason it closed. If most trades close on the stop, the entries may be early. If a few trades make all the profit, the result depends on catching those few moves. You checked a couple of these by hand in chapter 2; the log shows the whole pattern.

5. Know what this doesn't tell you

A quick backtest covers only the candles on your chart: one stretch of one market, with whatever settings you have. It can't tell you whether the result would hold on other dates, other conditions, or the future.

Heads up

A great-looking quick backtest is a reason to keep testing, not to deploy. The next three chapters try to prove it wrong.

Check your work

Look in Spera and tick what’s true. It only helps you keep your place; nothing is locked.

Remembered in this browser.

Go deeper in the docs

Optional. You don’t need these to carry on.

Next up · Chapter 4

Try two ideas and compare

A second version on its own branch, ranked against the first.

Start chapter 4