Chapter 5 of 7All chapters
Part 2 · Test · Chapter 5 of 7
Try to break it
Chapter 5 video
In this video7 parts · 4:54
- You’ll need
- The version that won chapter 4, saved.
- You’ll end with
- A deep backtest and an Edge Report that says how much of it is real.
- Time
- 15 min
Do it in Spera as you read
Opens in a new tab. Keep this page beside it and follow the steps.
So far every test used the candles on your chart: a few months, one market mood. Strategies that look great on one stretch often fail on the next. This chapter tries hard to break yours. If it survives, you can start to trust it.
1. Check the settings once
Open Backtest settings from the Backtest panel. They're shared by Quick, Deep, and Compare runs: Account, Fees & slippage, Buying power, Order sizing and Risk policy. Set fees and slippage to what you would actually pay, not zero, and press Apply.
Tip
Fees and slippage on every trade are how many good-looking strategies die. Set them honestly now, so you don't find out later on a live bot.
2. Set up the deep run
Switch the Backtest panel to Deep. The strategy must be saved: a deep run tests a saved version, not a draft.
- Range. Drag the scrubber or pick a preset: Last 30 days, Last 90 days, Last 6 months or Last 12 months. For this chapter use 12 months, or longer if your timeframe allows. More history covers more kinds of market.
- Holdout. Set it to 20%. The last fifth of the range is held back: the run reports how the strategy did on candles your tuning never saw, separately from the rest.
- Walk-forward. Set it to 4. The range is split into four equal windows, each scored on its own, so you can see whether the edge holds in every period or only in one.
Out-of-sample and walk-forward explains exactly how the range is cut.
3. Run it
Press Run deep. A deep run is a job on the server. The progress strip moves through Waiting in queue…, Fetching market data… and Running simulation… to Report ready. Cancel stops it.
Deep runs have their own daily allowance: 10 on Free, 30 on Plus, 100 on Premium.
4. Read the Edge Report
When the run finishes, three sections appear under it: Deep report (the metrics and equity curve for the whole range), Edge report, and Trade log.
The Edge Report has one job: to say whether this result is an edge or just a description of the past. It runs up to eight checks, each trying a different way to break the result: does it hold on the held-back slice, in every walk-forward window, in different market conditions, and with the trades in a different order? The headline sums them up: Edge holds up, Edge with caveats, Edge questioned, or Checks pending.
Three of the hardest checks only run when you ask: comparing against random entries, against a shuffled market, and parameter sensitivity. Press Check for edge in the Edge check strip to run them.
A missing check is not a pass
If a check couldn't run, the card says Not run or No verdict. It never shows a reassuring green. A card that reads Checks pending is telling you what you haven't tested yet.
The Edge Report goes through each check and its thresholds.
5. Read the letter
Next to the results is a letter grade, from A+ down to F. Click it to open the Edge Rating card.
The letter is not the backtest's Sharpe ratio. It is the edge Spera is confident remains after taking out market exposure, harsher costs, luck, and the number of versions you tried (the warning at the end of chapter 4). Two sections on the card tell you what to do next: Why this letter and What would change it.
The Edge Rating has the full scale.
6. Decide
The result is one of three:
- It held up. Most checks pass and the grade is a B or better. Go on to chapter 6.
- It has caveats. Read the failing row; it names what broke. Often it's one regime or one window. Decide whether you can live with it, or fix it on a new branch.
- It broke. That's useful: you found out on history, not with a bot. Go back to chapter 4 with a different idea.
Heads up
Don't tune the strategy until the Edge Report turns green. Every change you make to pass a check fits the strategy a little more to this history, and the Edge Rating counts those versions against you.
Check your work
Look in Spera and tick what’s true. It only helps you keep your place; nothing is locked.
Go deeper in the docs
Optional. You don’t need these to carry on.
Next up · Chapter 6
Run it forward and go on record
The saved version tested on candles it has never seen, then on the record daily.