Backtests
How a strategy is replayed on history, how to read the result, the replay lab's realistic runs, and the launch backtest for launch-type triggers.
A backtest replays a strategy's rules on stored history before any SOL goes in: which signals it would have seen, which it would have taken, and how its exit plan would have sold them. It is the first test of a strategy, not proof that it works.
Where to find it#
On Strategies, open a strategy: the Backtest tab opens first. Press Run backtest to replay the saved rules (it reads the whole record, so it runs only when asked). Run again runs it once more. On the Rules tab, Test these rules backtests what is in the form without saving it; the result is marked unsaved rules.
A backtest of the saved rules is kept on the strategy. Its average shows in the strategy list until there are paper trades (with (old) once the rules have changed), and the health monitor compares live results with it.
What you see#
The summary line#
The dates covered, what was replayed (how many tracked buys, or how many days of the launch record), how many signals, how many trades at what size, how many are still open (the trade's time is not over and the price data doesn't reach its end yet), and how many signals had no price data to replay on.
Under it, when any signal had no price data, a note says "12 of 80 had no price data" and gives the result both ways: the average per trade with those signals left out (the high end) and with each one counted as a total loss (the low end). The tokens we couldn't price may have done well or badly, so the honest answer lies between the two. The same note sits on every strategy the Lab finds. Where the buy delay the replay used is an assumption (you have too few buys of your own to measure it), the page says "assumed".
The numbers#
| Box | Meaning |
|---|---|
| Trades | Signals taken and replayed to the end |
| Win rate | Share of trades that made money after costs |
| Average | Average return per trade after costs |
| Typical (median) | The middle trade's return |
| Total | Profit in SOL, each trade sized as your buys are (see How a buy's size is worked out) |
| Worst drawdown | The biggest fall of the running total from its high, in SOL |
| Profit factor | SOL won on winners divided by SOL lost on losers (above 1 makes money) |
| Avg hold | How long a trade lasted on average |
If the average is positive but the typical trade loses, a note warns that a few big winners carry it.
Out of sample: older 70% against newest 30%#
With 10 or more trades, the trades are split by when they were bought: Fitted on (the older 70%, the in-sample part) and Held out (the newest 30%, out of sample), each with how many trades and their average. The newest share is the Held-out share of trades platform setting (30% by default); the Strategy lab's search, its cards and its walls split at the same share, so "the newest trades" mean the same trades everywhere.
Under the two numbers, the check says one of:
- Holds up on later trades: the held-out trades made money too, at least half as much a trade.
- Weaker on later trades: they made money, but under half as much (expect less than the headline number), or only because of their single best trade.
- Loses on later trades: the held-out trades lost. The edge may be luck, or gone.
- Loses even where it was fitted: it didn't make money on the older trades either.
- Too few later trades to tell: fewer held-out trades than the Evolution: holdout trades setting (10 by default). Treat the result as untested.
Trust a strategy more when both parts make money.
Profit over time#
A chart of the running total in SOL, trade by trade, and badges counting how trades ended: Take-profit, Stop loss, Trailing stop, Time stop, Held to the end (sold at Sell the rest after) and Stopped trading (the token went quiet, sold at its last price) and Gone (no trade for an hour or more, a platform setting, before the trade's end, with the prices read that far: what was held counts as a total loss, as pulled liquidity does). A trade whose stored prices stop before its end, once its time is over, is closed where the price history ends: sold at the last stored price and counted, not dropped (or counted as a total loss when the token had already stopped trading by then).
Skipped signals, replayed#
One row per reason signals were turned away (Why skipped), with how many (Signals; in brackets how many could be replayed), how they Would avg and how many Won. If skipped signals would have done better than the trades taken, a filter is costing you. See Filters.
Trades, newest first#
Each trade with its token, entry time, wallets, market cap, result and how it ended. A page at a time.
How the replay works#
- Tracked wallets buy strategies replay every buy your tracked wallets made, oldest first, on the stored price paths of the tokens they bought. Pool and vault addresses are left out.
- A trade is entered Wait before buying seconds after the signal, at the first stored price at or after it. On a one-minute candle path an exact price must come within 15 s of the buy (From your buy: how late a price may be), on a path of trades within 3 minutes. Never a price from before the buy.
- A buy on one-minute candles with no exact price is bought at the high of the minute it falls in: the worst price you could have paid then, never a kinder guess. Such trades are counted on the result as priced at the minute's high (Replay: price a buy at its minute's high, a platform setting). When nobody traded in that minute at all, the buy can't be replayed and counts as without price data.
- Where the stored prices carry volume, a buy is cut to 10% of what traded in its minute and turned down when its size would move the price more than 25% (Replay: check the size could be traded and its two limits, platform settings). A sale bigger than that share of its minute is marked as hard to sell, and a trade with no stored volume is marked "not known if it could be sold" instead of being taken as sold.
- The exit plan runs candle by candle. Inside one candle the order of the high and the low is unknown, so stops are checked before take-profits (the cautious answer). A stop on a candle that closed under it was a crash: it fills at the candle's low, not at the stop. A dip through the stop that closed back above it fills at the stop.
- Round-trip cost is taken off every trade.
- Max open is respected: a signal arriving while the strategy would already hold that many is skipped.
- The filters marked live only are not replayed, and neither are the rug guard, mirrored sells, the second wave or the allocator. See Filters.
The replay lab#
For Tracked wallets buy strategies, the Replay lab: as late and as dear as real trading card replays the same rules three ways. A backtest assumes you act at Wait before buying and pay Round-trip cost; real trading is later and dearer.
| Run | Buys after | Round trip |
|---|---|---|
| As set | Your Wait before buying | Your Round-trip cost |
| Typical lag and cost | Wait before buying + your typical lag | Your measured cost, or your Round-trip cost if that is higher |
| Bad day | Wait before buying + your slow lag | 1.5 × the typical run's cost |
The card shows each run's trades, average and total, and a badge: edge survives or edge doubtful. The edge survives when the typical run still makes money on average, with at least 5 trades, and still makes money on its newest 30% of trades. An edge that only survives the As set run is not an edge.
Where the lag and cost come from#
They are measured from your own record over the last 30 days:
- Lag: how many seconds after the buy your running strategies acted on their signals. The typical lag is the median; the slow lag (used on a bad day) is the 90th percentile. It needs 10 signals. Until then it assumes 20 s typical and 75 s slow.
- Cost: how much less your filled orders got than their quotes (slippage) and what their network fees and tips came to, both per leg, using live fills when you have at least 5 and paper fills otherwise. It needs 5 fills; until then it assumes 1.5% slippage and 0.5% fees a leg.
- Platform fee: your plan's swap fee per leg.
The round trip is twice the slippage, fees and platform fee together. The note under the card says which values were measured and which were assumed.
What each sell's tip costs#
Live, a sell that can wait a moment pays a tip sized to what it brings in, and an urgent one pays your full fixed tip (see Tips sized to the trade). The backtest, the Strategy lab and the engine's searches charge each sell the same way, by how the replayed trade ended:
- Sized to the sale: a take-profit, a slice sold into strength, a time stop, the end of the longest hold, and a trailing stop while the trade is in profit.
- Closed at the last price (the stored prices stop before the trade's end): sized too, like a time stop. If that price were under the stop loss, the stop would have sold it, so it pays the full tip.
- The full fixed tip: a stop loss, a trailing stop at a loss, a sell that copies a wallet, and a token that stopped trading.
- A ladder pays for each of its sells: every take-profit step pays its own sized tip, and a stop after a step pays the full tip on top. So a ladder can cost more than one sell.
A take-profit's tip is never more than your fixed tip, and the round trip never costs less than your own Round-trip cost. On a bad day the sells cost 1.5 times as much, like the rest. With the platform's Tips sized to the sale switch off, every trade pays one sell at the full fixed tip, as before.
The engine's searches read stored results that don't keep why each trade ended. They only size a sell when the result shows it could wait (held to the end, or one sell in profit with a stop under the entry). Otherwise they charge the full tip, so they are never kinder than the backtest.
Backtests you ran before this change keep the results they had, worked out with one fixed sell a trade. Run them again to see the new costs.
The launch backtest#
Strategies with a launch-type trigger (New launch (sniper), Graduation, Good dev launches, Theme heating up and Callers post it) are replayed over the launch record instead: every matching launch, graduation or call over the last 30 days (the number of days is a platform setting), each entry run through the exit plan on our own one-minute candles, or a stored price path where there are no candles.
- Good dev launches uses each dev's record as it stood at the launch (launches judged at least a day before).
- Theme heating up uses each theme's heat as it stood that hour.
- Callers post it replays your own recorded calls.
- The summary line says how many days of the launch record were replayed.
- The launch backtest has no replay lab.
The coverage note#
A grey note above the numbers says how much of the history could be replayed:
- "Every matching signal had price data."
- "N of M matching signals have no price data": our own trade feed keeps candles only while it runs, so launches from before it was on (or while it was off) can't be replayed. They are left out of the main numbers, so the note shows the result both ways: left out, and with each counted as a total loss. A token that has price data up to the entry but none after it counts as a total loss in the main numbers ("No price after entry"): it most often stopped trading because it was a rug.
- Entries are priced at the first price at or after the entry moment, never one from before it.
- "No matching signals in the record yet": the launch record and our own feed fill it as they run.
- For Volume spike, Smart money in and Watchlist level: "This trigger needs tick history the platform does not keep: run it on paper to see how it does."
A launch backtest that covers only a small share of its signals says little. Weigh the result by the coverage.
Good to know#
- Results depend on your tracked wallets and the stored price paths: more tracked history, better backtests.
- The trades and skipped lists show at most the latest few hundred; the numbers count them all.
- You can run up to 30 backtests a minute.
- A good backtest earns a strategy a paper run, not real SOL. See Paper to live.