Chapter 4 of 7All chapters

Part 2 · Test · Chapter 4 of 7

Try two ideas and compare

Chapter 4 video

Plays from YouTube. Everything in it is also written out below.Open on YouTube
In this video8 parts · 4:16
You’ll need
The strategy and the quick backtest from chapter 3.
You’ll end with
A second version on its own branch, ranked against the first.
Time
10 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

Your first backtest gave you a number. On its own that number tells you very little: you need something to compare it with. In Spera that's another version of the same strategy, kept on its own branch so the original never changes.

1. Save: every save is a version

Press Save in the strategy header. A small popover asks for a Commit message: one line on what changed, such as "EMA 20 cross, 2% stop". Then press Save. Each save is a commit, and the first branch of every strategy is called main.

Tip

Write the message for the person reading the list three weeks from now: what you changed, not "update". The commit history is how you'll find the version that worked.

2. Branch off

Click the branch chip next to the strategy name (it shows main). The Version branches menu opens.

  1. Choose New version branch.
  2. Give it a name that says the idea, such as trend-filter, and press Create.

The new branch starts from the version you're on and opens immediately. main stays exactly as you saved it.

3. Change one thing

Change one thing at a time, so that if the result moves you know why. For this example, add a trend filter so the strategy only goes long when price is above its 200-period EMA:

Only take longs when price is above the 200 EMA.

Ask the AI that, or do it yourself: add an EMA step with period 200, and add a second rule to your Condition saying price is above it. Run a quick backtest to check it still trades, then Save with a message.

Let the AI build the branches

You can also ask for several ideas at once: "try an ATR stop and a trailing stop in separate branches". The AI builds each one on its own branch without touching the strategy you have open. A card shows progress (Building 2 branches from main), lets you Open each branch, and has a Compare branches button that takes you straight to the next step.

4. Compare them

In the Backtest panel, switch from Quick to Compare. (Or choose Compare all branches in the branch menu.)

  1. Under Compare strategies, pick what to rank against. Branches lists this strategy's branches. Built-in has a Buy & Hold baseline and the templates. Yours and Public add other strategies.
  2. Choose the data. Quick uses the candles already on your chart. Deep runs over a date range on the server.
  3. Press Run comparison.

Every strategy is tested on the same candles with the same backtest settings, so the comparison is fair. Each strategy counts as one backtest against your daily allowance, and the panel says how many before you run. Buy & Hold is free.

5. Read the ranking

The results come in four parts:

  • Ranking shows where your strategy placed (#1 of 3), which metric it leads on, and its head-to-head record against each of the others.
  • Metrics shows the numbers side by side. Switch between You (your strategy against each of the others) and Field (every strategy together).
  • Equity shows every equity curve on one chart.
  • Radar shows each strategy's shape across several metrics at once, such as return, drawdown and consistency.

Always include Buy & Hold. A strategy that loses to just holding the coin is all risk and no reward.

6. Go back in time

Click the clock icon Commit history in the Logic Deck toolbar to see every save on the branch. Hover a commit to see what it changed (+2 nodes · −1 edge). The changed nodes also light up on the deck.

  • Restore loads that version into the editor. Your next save commits on top.
  • Set as head makes that version the branch's current one.

The more you try, the less the winner means

Pick the best of ten branches and some of its lead is luck: you kept the one that happened to fit this stretch of history. Spera keeps count. The next chapter's Edge Rating discounts the result for the versions you tried. So compare a few real ideas, not fifty settings.

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 5

Try to break it

A deep backtest and an Edge Report that says how much of it is real.

Start chapter 5