Backtesting
Replay a strategy against historical candles before it touches a live market.
Running a backtest
Open the Backtest panel, choose a strategy (a bot or pasted ThunderScript), the symbols, timeframe and number of days, then run it. Backtests are synchronous and can take up to two minutes.
| Parameter | Default |
|---|---|
timeframe | 1h |
days | 42 |
initial_capital | 10000 |
symbol / symbols, leverage, source, bot_id | optional |
The API is POST /api/backtest — see the API reference.
Backtests are not predictions
Historical results ignore slippage and liquidity effects you will meet live, and strategies tuned to the past often degrade. Confirm with a testnet bot before going live.