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.

ParameterDefault
timeframe1h
days42
initial_capital10000
symbol / symbols, leverage, source, bot_idoptional

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.

AiTrade docs