How to Run a Backtest for Your Trading Bot

A Guide to Run Backtest for Trading bot

Backtesting is a crucial step in evaluating the performance and effectiveness of a trading bot. It allows you to simulate trades using historical market data to assess how well your bot would have performed in the past. In this article, we will guide you through the process of running a backtest for your trading bot.

Please note: backtest will be conducted using the latest 500 candles from the stock exchange.

Step 1: Select the Bot and Access the Bot's Detail Page

Navigate to the Bots page and choose the trading bot you want to backtest. Click on the bot to access its detailed page.

Step 2: Access the Backtest Tab

On the bot's detail page, locate the Backtest tab. Click on it to access the backtest settings.

Step 3: Initiate a New Backtest

In the Backtest table, click on the [Run a new Backtest] button. This will open a new window where you can configure the backtest settings.

Step 4: Select the Market

In the opened window, choose the market on which you want to run the backtest. This is the market where the bot's trading actions will be simulated.

Step 5: Specify the Initial Balance

Enter the initial balance you wish to allocate for the backtest (by default Initial Balance = 100). This represents the starting capital that the bot will use for trading during the backtest.

Step 6: Run the Backtest

Once you have set the market and specified the initial balance, click the "Run" button to initiate the backtest process.

Step 7: Await Notification of Successful Backtest Execution

Wait for the system to process the backtest. You will receive a notification once the backtest has been successfully executed. And in the table of backtests a new backtest will appear with the status "New".

Step 8: Refresh the Page and Review Backtest Results

After the backtest is complete, refresh the page. In the Backtest table, you will see the completed backtest with the status "Completed" and the corresponding backtest results. Review the results to evaluate the performance of your trading bot.


Running a backtest for your trading bot allows you to assess its performance based on historical market data. By following the simple steps outlined in this article, you can initiate a backtest and gain valuable insights into the bot's effectiveness. Remember to analyze the backtest results carefully to fine-tune your trading strategies and improve your bot's performance.

Last updated

Darkbot Inc. All rights reserved