How backtests work

A backtest replays history candle by candle and applies your rules as if you'd been trading at the time. How it decides when and at what price each trade happens makes the difference between results you can trust and results that flatter you. SeaOrb is deliberately strict about it.

Signals are judged when a candle closes

An indicator's value isn't final until its candle closes — halfway through a candle, "RSI crossed above 30" can still un-happen. So SeaOrb checks your conditions at each candle's close, the way you could have in real life.

They fill at the next candle's open

When your entry or exit conditions are met, the trade happens at the open of the next candle. That's when a real order placed after the close would have filled. On the chart, a trade's marker therefore sits one candle after the candle where its conditions came true.

Filling at the price where a condition triggered, inside the candle, would use information you couldn't have had at that moment. It's the most common way backtests overstate results, so SeaOrb doesn't do it.

One trade at a time

A strategy holds one position at a time. While a trade is open, only the exit side is checked; while you're out of the market, only the entry side is. An entry signal that appears during a trade is ignored.

Order types

Order Type in the Backtest drawer controls how entries are placed once the entry conditions are met:

  • Market (default) — enters at the next candle's open.
  • Limit — waits for a better price: below the signal candle's close for a long (above it for a short), by the Entry Offset percentage. It fills on whichever candle reaches that price first.
  • Stop — waits for confirmation: above the signal candle's close for a long (below for a short), by the Entry Offset. Useful for breakouts.
  • Stop-Limit — like Stop, but won't pay more than the Limit Offset beyond the stop price. If price jumps past that cap, the order doesn't fill.

A Limit, Stop or Stop-Limit order that hasn't filled after Entry Timeout candles is canceled.

If a candle opens beyond your order's price — a gap — the order fills at that open price, because no real order could have filled at a price the market skipped.

Stop-loss and take-profit

Stop-loss and take-profit behave like real orders sitting on the exchange. They're checked against each candle's high and low, and fill at their price, partway through the candle — not at the next open.

  • If a candle opens beyond one of them (a gap), that one fills at the open price.
  • If a single candle touches both levels after opening between them, that candle alone can't show which came first. SeaOrb looks inside it, using finer candles from the same period, and books whichever level was reached first — hover over the trade to see what it checked with. How fine depends on how long ago it was: recent trades can be checked minute by minute, trades from years ago by the hour, and the oldest daily candles can't be looked inside at all.
  • If even the finer candles can't tell (or none are available), SeaOrb assumes the stop-loss — the cautious choice. Its trigger reads Stop-Loss* on the Trades tab, and the ⓘ in the bottom panel's top bar notes how many trades it applied to. Hover over the trade for the explanation. Tighter timeframes, or stop-loss and take-profit levels further apart, make this rarer.

The candle an entry fills in. A Limit, Stop or Stop-Limit entry can fill partway through a candle. Part of that candle — its open, and perhaps its high or low — happened before you were in the trade, so it can't trigger your stop-loss or take-profit. Only what the price did after the fill counts:

  • A level the price passed between your fill and the candle's close was certainly reached after you entered — it fills at the level.
  • If the candle also reached your stop-loss some other way, SeaOrb can't tell whether that was before or after your entry, so it assumes the stop-loss and marks it Stop-Loss*, as above.
  • A take-profit only counts when it's certain.

As above, SeaOrb looks inside the candle with finer candles when they're available, starting from the moment of your fill.

Costs

Every trade pays fees and slippage, using the values in the drawer:

  • Market and Stop orders and stop-losses pay the Taker Fee; Limit orders and take-profits pay the Maker Fee.
  • Slippage always moves your fill price against you, on the way in and on the way out.
  • Funding, when switched on, is charged (or received) for every candle a futures position is open.

Trades still open at the end

If a trade is still open when the data ends, SeaOrb doesn't invent an exit for it. It's shown on the Trades tab as Open, with its profit or loss so far, and the Results tab says how much of the total return comes from it. It isn't counted in the win rate or other per-trade statistics until it closes.

What a backtest can't tell you

  • The future. Markets change; a rule that worked for the last two years can stop working.
  • Overfitting. Tweak settings long enough and you'll find a combination that fitted the past by luck. Test on other coins, timeframes and date ranges — and on Elite, use walk-forward analysis — before trusting a result.
  • Liquidity. Backtests assume your orders fill at the simulated price. Very large orders, or very thinly traded coins, may not fill like that in real markets.

Still stuck? Choose Contact Support in the app, or email [email protected].