Guide 2026-05-05 · By Julie Derthing, Chief Staff Assistant at Seentio

How to Backtest a Strategy on Seentio

Backtesting answers one question: "If I'd been running this strategy for the last few years, how would it have done?" The answer is never perfect — past performance never guarantees future results, and even our walk-forward methodology has limitations we'll be honest about. But it's the best directional signal available before you commit real capital.

This guide walks you through running a backtest on any strategy you've saved on Seentio.

What you'll learn

How to run a 1, 3, or 5-year walk-forward backtest on any saved strategy via Claude Code, what the output means, and what backtests don't tell you.

Prerequisites

Step-by-step walkthrough

1. Identify the strategy you want to test

Ask Claude:

What strategies do I have?

Claude calls list_strategies and shows you a table with name, status (draft/active/paused), and creation date. Pick the one you want to backtest. If you've just created a Magic Formula, that's the one.

2. Run the backtest

Backtest 'Greenblatt Magic Formula' for 3 years against SPY.

Claude calls backtest_strategy with your strategy's full definition, period_years=3, and benchmark="SPY". This call takes 3-8 seconds typically — we're fetching daily price history for up to 30 stocks plus the benchmark, then walking forward through ~750 trading days.

3. Read the output

You'll get back something like this:

Metric Strategy Benchmark (SPY)
Total return +47.2% +28.5%
Annualized return +13.7% +8.7%
Sharpe ratio 0.96 0.71
Max drawdown -18.4% -14.2%
Volatility (annualized) 14.3% 12.4%
Number of rebalances 36 n/a

Plus a rebalance log showing the most recent 3 rebalance events: which tickers were added, which dropped, the order quantities. Useful for sanity-checking that the strategy actually did what you expected.

4. Compare against the benchmark

The benchmark is your "do nothing different" baseline. SPY (S&P 500), QQQ (Nasdaq 100), IWM (Russell 2000), and DIA (Dow 30) are the four supported choices.

Some questions to ask:

5. Decide what to do next

Three honest options:

What backtests DON'T show you

Be honest with yourself about the limitations:

Survivorship bias

Our backtest uses today's universe snapshot for the entire historical period. A company that delisted 3 years ago is invisible to the backtest. If your Magic Formula would have picked a stock that subsequently went to zero, you don't see that loss — because the stock isn't in today's universe.

This biases historical returns upward. The bias is bigger for longer lookback periods and for strategies that pick from broader universes. Eliminating it requires loading the universe-as-it-was on each historical rebalance date, which is a feature on our roadmap.

Trading costs

Backtests assume you got fills at the official close price with zero commission and zero slippage. Real-world trading has spreads, market impact (especially for smaller stocks), and commission (though most retail brokers are zero-commission for stocks now). For monthly-cadence strategies on liquid large-caps, this is small. For weekly strategies on small-caps, it's not.

Behavioral risk

The backtest shows what would have happened if you'd held the strategy through every drawdown without flinching. Real investors flinch. A backtest with -18% max drawdown means at some point you'd have been down 18% from the peak — would you really have stayed the course?

The future is not the past

The most important caveat. Strategies that worked historically can stop working. Factor strategies (value, momentum, quality) all go through extended periods of underperformance. The Magic Formula spent 2018-2020 underperforming SPY before recovering. Backtests show what the past looked like — they cannot predict what the next 5 years will look like.

Tips & common questions

What's next

Need more help? Visit our Chat page to ask Seentio's AI assistant, or reach out at contact@app-seentio.com.

Frequently Asked Questions

What's a walk-forward backtest?

Walk-forward means we step through history one period at a time. At each rebalance date (weekly, monthly, or quarterly depending on your strategy's cadence), we mark the portfolio to market, optionally rotate holdings, and roll forward to the next date. Returns compound over time. The output is an equity curve, annualized return, Sharpe ratio, and max drawdown.

How long can my backtest period be?

1, 3, or 5 years. Anything else gets coerced to 3. Five years is the maximum because EODHD historical data costs scale with universe size and lookback length, and we want to keep backtests fast (<10 seconds typically) and free for all tiers.

Why are some of my historical returns suspiciously good?

Survivorship bias. Our backtest uses today's universe snapshot for the entire historical period. A ticker that delisted 4 years ago is invisible (so a 'failed' bet never shows up); a ticker that just IPO'd in 2024 looks like it always existed. This makes historical performance look better than reality. We're transparent about this — eliminating it requires loading the universe-as-it-was on each historical date, which is a future feature.

Does backtest cost credits?

Yes — backtest_strategy is a heavy tool that costs 5 credits per run. Standard quotes and screener calls cost 1 credit. Basic users get 200 free credits per month, which is enough for ~40 backtests. Heavier users buy credit packs (starting at $5 for 500 credits).

Can I backtest a Magic Formula strategy?

Yes — as of v3.5.21 the backtest engine correctly honors ranking blocks. Earlier versions silently used the legacy 'top 10 by market cap' default for ranking strategies, producing meaningless results. If you have a strategy created before v3.5.21 you may want to re-run its backtest now.

Related Research

Track these stocks in real time

See the data behind the research. Start with Seentio's free tier.

Get started free