Backtest
Compose a strategy and run it against historical candles — equity curve, risk metrics and the full trade list. Signals act on the next bar (no look-ahead). Research, not investment advice.
Unlock the backtest engine
Backtests use an API key. Generate one now — it is stored only in this browser. You can manage keys any time from Account & Keys.
Failed to create a key.
Sent with every run, not configurable here — slippage 0 · calendar 24_7.
when <condition>: <action> — rsi(n), sma(n), ema(n), macd(), event("kind", within="2h"); actions buy/sell/flat.
Worked example
when rsi(14) < 30: buy 1
when rsi(14) > 70: flat
# events compose with indicators:
when event("eia:report:WCESTUS1") and rsi(14) < 40: buy 1
Kept in this browser only — up to 8 runs, best effort. Clearing site data clears the list.
Configure a strategy and run it — results appear here.
Running backtest…
Polling the job every 1.2 s until it reaches a terminal state.
Backtest failed
indicator error: sma(60) needs 60 warm-up bars, candle window returned 41 — widen the date range or shorten the slow period.
Job unavailable
Failed to load the job — request timed out after 30 s.
WTICO/USD · 1d · 31 Aug 2025 → 31 Aug 2026 · capital 100,000 ·
fee 0.0005 · lag 1 bar · shorts on
n = 251 closes · n = 16 trades · MA crossover 20/60 SMA
Equity curve
Trades
| Entry | Exit | Side | Return | P&L (USD) | Bars | Events |
|---|
Entry and exit stamps localise to the bar — a 1d run shows the session date. All 16 rows shown; the table renders the first 300 rows and notes the remainder here when a run returns more.