Backtesting Trading Strategies in Gunbot
Open Backtesting in Gunbot to evaluate a strategy on historical market candles. A backtest simulates trades; it does not place orders on your exchange.
Set up a run
Choose the historical-data provider, pair, strategy, starting balance, trading fees, and date range. Use Configure Strategy to review the strategy parameters before running the test.
The historical-data provider supplies candles for the simulation. It does not have to be the exchange where you intend to trade, but differences in prices, liquidity, fees, and execution can affect live results.

The empty chart is the setup state before a run. Results populate after the simulation finishes.
Run and inspect the result
Select Run Backtest. When the run completes, inspect:
- Trade markers and ledger: whether the entry and exit sequence matches your expectations.
- Position size and exposure: how much capital the strategy uses, including repeated entries.
- Drawdown: the size of declines during the run.
- Fees and wallet change: the result after the configured trading costs.
- Open positions: whether the run ends with holdings that remain exposed to price changes.

Example: BTC on Binance, January 1–15, 2025. This is a historical simulation, not a forecast.
Compare settings
Change one parameter at a time and compare the resulting trade sequence, exposure, and drawdown. Test additional periods, including falling and sideways markets. A profitable result in one period does not establish that the same settings will perform well elsewhere.
Browser preview supports a subset of strategies. Other strategies require the full backtesting execution path. Use the options available for your selected environment.
For saved runs, comparison tools, and more detailed analysis, see Backtesting in Gunbot Unlimited.
Move to a trading setup
Use Build your first trading setup to add the tested strategy to a pair and review its sizing before starting the bot.