Rewindex

How a Rewindex backtest works

This page explains exactly how results are produced, so you can judge them yourself. A backtest is only as honest as its assumptions, so here they all are.

The data

We record short-duration prediction markets ourselves, tick by tick. For every contract we keep:

Replay without look-ahead

Events are fed back in the order they were received. A rule can only use information that existed at that moment. Results become visible to rules 20 seconds after a contract closes, as observed live. Nothing from the future leaks into a decision.

How an order is filled

  1. Decide. The rule sees an opportunity in the current order book.
  2. Confirm. It waits for a fresh order-book update at least 0.25 seconds later and checks the opportunity is still there.
  3. Submit. After a further delay (0.5 seconds by default) the order goes in. You can test slower order speeds; each one is a full re-simulation.
  4. Fill. The order walks the recorded order book level by level, buying only the contracts actually offered at each price. If the price moved or the book thinned, the trade is smaller or doesn't happen.
  5. Fees. The venue's published taker fee is charged on every fill.
  6. Settle. Each contract pays $1 or $0 on its official result.

Every simulated trade carries a plain-English note: which price levels it took, the average price, the fee, how long before the close it happened, and how it settled.

Statistics, and why they're there

Controls

Every rule is run next to two controls on the same contracts: one that picks a side at random and one that always buys the favourite. A rule is only interesting if it clearly beats both.

Is it luck?

We resample the trade list 2,000 times (a bootstrap) to get a 95% range for total profit, and say plainly whether that range is above zero, below zero, or straddles it. This assumes trades are independent, which flatters rules whose trades are correlated, so treat it as a minimum test, not proof.

Early days versus late days

The recorded days are split in two and the rule is scored on each half. A rule that only works in one half is probably fitted to noise.

Fill uncertainty

Results are also shown as if every fill were 1 cent worse and 1 cent better. If that small change flips a result from profit to loss, the edge is too thin to trust.

Other measures

Known limits

Rewindex is a software tool for research and education. It doesn't place orders, hold funds or give investment advice. Terms and disclaimers