Backtest warnings
Every warning and data note a backtest can show, what it means in plain words, and what to do about it.
Warnings sit at the top of a backtest's results and in Data and assumptions. The ones in capitals change how far you can trust the result; the lower-case data notes explain gaps in what the replay could see. Each capitalised warning below is named exactly as the backtest prints it. A data note usually starts with a market id or a number, so it is listed by the words that come after (for example “whale trades unavailable”), which you can search for here.
Warnings that change the result#
- SELECTION BIAS
Your file read live data before the backtest began, for example to pick its markets by today's activity. Markets busy today are the ones that moved, which flatters a replay of the past. Do: name the markets explicitly in the strategy.
- MARKETS SETTING
The backtest ran on the Markets setting, not on the strategy's own list (both are named). In the backtest view this happens when Venue is set to one venue: that venue's markets are sent as the setting.
self.marketsandctx.marketshold the setting fromon_starton, but anything your code built in__init__or when the file loaded, from its own list, does not see these markets. Do: build per-market state inon_startfromctx.markets, or set Venue to All venues.- FEES NOT MODELLED
Olypse has no fee schedule for some markets, so their fills paid nothing and the result leaves out real fees. Do: read the result as better than it would be.
- IDEALISED FILLS
Some fills used
fill='mid': at the midpoint, with no spread and no fee, assumed to fill. Real resting orders fill less often and often just before the price moves against them. Do: removefill='mid'and compare.- TOO FEW TRADES
Fewer than 30 positions. With so few, a result cannot be told apart from luck. Do: a longer window or more markets.
- FEW EVENTS
30 or more positions, but on fewer than 30 independent events (markets of one event share an outcome, so they count once). Under 30 events a result cannot be told apart from luck. Do: add markets on other events (one backtest takes up to 100, fewer over long windows) or repeat it on other windows before reading much into it.
- LOOK-AHEAD RISK
The strategy may have used something it could not have known at the time. Two kinds:
Your code uses names that only exist after the fact (a resolution's time or outcome, prices after a fill). A rule built on them cannot run live. Do: remove them.
Orders were placed soon after a result was replayed at the venue's resolution time, but results reach the data later (a median 1.7 hours on Kalshi, 2.6 hours on Polymarket), so live the strategy could not have known yet. Do: use the research dataset, which delivers results when they were really seen.
- LOOK-AHEAD RISK (whale timing)
Orders reacted to whale trades that came with no arrival time, so they were replayed at their trade time, possibly before Olypse had them (late Polymarket rows arrived a median 8.6 minutes after the trade). Do: treat whale-reaction results here as optimistic.
- RESOLUTION TIMING
Some results had no detection time, so they were replayed at the venue's resolution time, before a live system would have seen them. Do: treat anything that reacts to results as optimistic.
- APPROXIMATE MAKER FILLS
Resting-order fills were decided on one-minute bars, which miss fills a trade-by-trade record would show (and can show some it would not). Do: read maker results as approximate.
- APPROXIMATE KALSHI PRICES
Kalshi fills used the research dataset's bars, which store a minute only when the midpoint moves 1¢ or more, so narrower spreads are missed. Checked against the full record, such fills were about 1¢ off per leg. Do: read Kalshi results from the research dataset as approximate.
- FEES ASSUMED
Some Kalshi series are not in the fee table, so they were charged the standard rate with resting-order fees on, the cautious choice. Do: nothing, unless you know that series' real fees.
- CAPTURE GAP
Fills were decided, filled or resting during a known gap in the recording: a Kalshi trade-feed outage (26–29 August, 2–5, 9–12 and 15–19 September), a Polymarket recording lag (25 August to 3 September), Polymarket books before 13 August 20:13 UTC, or the hole after 21 September 15:41 UTC. Trades are missing and quotes late there. Do: pick dates outside the gaps, or discount those fills.
- WIDE / FAKE BOOK
Taker fills happened on a book with a bid of 0, an ask of 100¢ or a spread over 20¢, including a “fake 50¢ book” (a midpoint of 50¢ with the fill 40¢ or more away). Those prices could not really be traded. Do: skip markets without a real two-sided book.
- ZERO-FEE TAKER FILLS
Taker fills paid no fee where the venue charges one, because fees were switched off or the schedule was not modelled. The result is better than it would be. Do: switch fees on in Costs and fills.
- UNRESOLVED
Over a quarter of the contracts were still open when the window ended and are valued at the bid. The result then mostly measures the cost of selling, not whether the bets were right. Do: a window in which the markets resolve.
- ONE DAY
The best day made over 30% of the net. Do: check what happened that day, and whether the result holds without it.
- PARAMETER GRID
When a backtest tried a grid of settings: the best setting is a lone peak (its neighbours did much worse) or sits next to a cliff (a neighbour lost about as much as it made). Do: prefer settings whose neighbours also do well.
- UNCERTAIN
The result per contract, resampled by event, ranges from below zero to above it nine times in ten. It made money here, but it could be luck. Do: more events.
- OVERFIT WARNING
When a backtest fitted settings across periods: the settings that did best in one period did much worse in the next, or the best of many settings stood far above the typical one (likely a lucky draw). Do: fewer settings, chosen for a reason.
- Took no trades
The replay made no fills: no price bar arrived, every order was rejected or still waiting, or your code placed no order (it lists the most common reasons). Do: call
ctx.why("…")on every branch that skips trading to see why.
Data notes#
- few trades
Between 30 and 100 positions: enough for a verdict, but every split of it (halves, periods) is noisy.
- their spread is an ESTIMATE
Polymarket's history has prices but no bid and ask, so the spread on those fills is an estimate. The research dataset has real quotes.
- no fee schedule from the API for … Kalshi market(s)
Some Kalshi markets came with no fee schedule, so the standard Kalshi schedule was assumed for them.
- …% of the window is in the under-capture period, falls in a capture gap or is in a news-linking gap
Printed after the data it is about (for example “Kalshi whale trades: 40% of the window is in the under-capture period”, then the gap's dates). Part of the window is in one of the known gaps for prices, whale trades, results or news. Absence of trades there is missing data, not a quiet market. A note that says the window “is before … started” means part of it is earlier than Olypse's recording.
- no price bars in the window
A market had no prices in these dates: a wrong id, or the market was not trading then.
- price bars cover part of the window
Under 90% of the expected minutes had a price. Missing minutes are not filled in.
- unknown payout or resolution time
A market resolved but its payout or its time is unknown, so its positions stay valued at the market price instead of settling.
- whale trades truncated
One backtest loads a limited number of whale trades; past that, later whale trades are missing. The note names the time they stop and how many hours are missing to the window's end, so
on_whalesees nothing then. Shorten the window to the hours you care about, or use fewer markets.- a token id has no condition id
A Polymarket market was named by its token id, so its whale trades, news and result are skipped. Use
polymarket:<condition id>instead: the sandbox assistant's market search returns it.- linked news missing or cut off
A news strategy saw no news for some markets, or the news was cut off partway through the window. Shorten the window. Items without a headline mean some publishers' headlines cannot be shown: write news rules on counts, kinds and timing.
- news lookback
Your code asked
ctx.newsfor more hours before the start thannews_lookback_hoursloaded (at most 168). Raise it.- warm-up shortened
One data request covers at most 92 days including warm-up, so the warm-up was cut; or the first bar sits on the interval grid just before your start (it is only seen after the start).
- research source
A reminder of how the research dataset works: bars stored when the midpoint moves 1¢ or more, fills at the valid quote, cautious resting orders, today's fee schedules. The research dataset.
- found no valid quote
Research dataset: orders were not filled because the book was empty, one-sided or wider than 20¢ at that moment.
- found an empty Kalshi book side
Kalshi orders were not filled because the side of the book they needed had no orders that minute (no liquidity).
- rejected; first: …, were still waiting, or were dropped after partial fills
Orders that did not fill: rejected (the first one and its reason are given), placed too late to fill before the window ended, or market orders larger than the usual book, dropped after 5 partial fills.
- resting limit order(s) were still open when the window ended
Limit orders that never filled. They are not counted as trades. A price that never reached the limit in the window is the usual reason.
- whale fill(s) reached the data more than a minute after the trade
Late Polymarket whale rows were replayed when they arrived, not at their trade time, as a live bot would have seen them.
- refused because the market had stopped trading
Between a market's resolution and the moment Olypse saw the result, orders are refused as they would be live.
- sweep: every combo produced the same result, or no combo traded
Trying other settings changed nothing. If no combo traded, loosen the entry rule or try a busier window or market before comparing settings. Otherwise the code reads its settings when the file loads: read them with
olypse.config()inside__init__oron_start, by their dottedconfig.tomlkeys.- sweep: the grid produced no combos
The grid of settings to try was empty: every value in it must be a number, a string or true / false.
- variants: every nearby setting produced the same result, or none traded
The nearby-setting lines all matched this run. The same two causes as for a sweep: nothing traded in any of them, or the code reads its settings when the file loads instead of in
on_start.- variants cut to … or skipped
The comparison lines you asked for (Harsher fills and the nearby settings) share a time budget of about 30 seconds of replays. On a long window or many markets only some fit (“cut to 2 of 6”), or none (“skipped”). Shorten the window, use fewer markets or a longer interval.
- variant … failed
One extra replay raised an error (the note gives its first line). The other lines are unaffected.
- replays skipped, could not be constructed without arguments, or could not be copied
The extra replays (the ×0 and ×2 spread lines, the comparison lines, walk-forward, hold-out) need a fresh copy of your strategy. If your Strategy class cannot be built without arguments, a copy of the instance is replayed instead, so settings read in
__init__do not change; if it cannot be copied either, a new one is built for each replay and anything set beforeolypse.main()is lost; if neither works, the replays are skipped. Give your Strategy class a constructor without required arguments.- result size
A very large result was trimmed to fit the page's 1 MB limit, in this order: the comparison lines' curves, the Monte Carlo sample paths, the realised P&L series, then position rows (“N of M position rows kept”) and day rows. The totals, the verdict and the warnings are kept.