7.7 KiB
title, summary, sidebar, permalink
| title | summary | sidebar | permalink |
|---|---|---|---|
| Run Your First Backtest | suite_sidebar | suite-run-your-first-backtest.html |
To run your first backtest you will need a functional strategy.
Available Quick-Start Examples
-
Share - Workspace - Combined Bull-run rider and Weak-hands buster.jsonfeatures the Bull-run Rider strategy (USDT) and the Weak-hands Buster strategy (BTC), combined on a single workspace. Use this template if you wish to use or learn about either or both of these strategies. You may delete the one you don't need if that is the case. -
Share - Workspace - Empty Strategy Structure.jsonfeatures a template containing the minimum set of structure of nodes required to build your own strategy. Nodes are empty (undefined). This structure will guide you through the process of building your strategy. You will not be able to run a backtest or trade live with this template until you set up your own strategy.
Import a Workspace
Go to the Superalgos/Quick-Start-Examples folder, drag Share - Workspace - Combined Bull-run rider and Weak-hands buster.json and drop it on the design space to start with a workspace with functioning strategies.
Run Your First Backtest
| Task Manager | Task | Trading Bot | Process | Backtesting Session |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
Once in the design space, hit Ctrl or ⌘ + Alt + T (T for Testing). This shortcut will take you to the Network hierachy of the design space, where you will start the process to run a backtesting session. More precisely, it takes you to Testing Sessions, the task manager that controls testing sessions.
Look around the task manager by clicking and dragging the black background of the design space. You may also use the following keyboard key combinations to move around:
- Ctrl or ⌘ + ← to pan to the left.
- Ctrl or ⌘ + → to pan to the right.
- Ctrl or ⌘ + ↑ to pan upwards.
- Ctrl or ⌘ + ↓ to pan downwards.
Notice how each task is followed by an instance of the trading bot, an instance of the trading bot process, and a session.
Locate either of the backtesting sessions named Back HWB or Back BRR. To run a session, you first need to run the corresponding task. To do this, hover the mouse over the task that controls the backtesting session and click Run on the menu, then go to the backtesting session and click Run on the menu as well.
You just started a backtesting session with a series of pre-configured parameters, including, for instance, the date range on which the backtesting session runs. Later on, you will learn how to adjust these parameters (if you can't wait, click on the backtesting session menu and you will find the parameters of the particular session).
Notice the date progress notification displayed below the backtesting session node. The session is configured to run starting on January 1st, 2019. It will run up to the latest date of your current datasets, or up to the present time if your datasets are up-to-date.
It may take anything between 2 to 10 minutes (depending on your machine's processing power) to finish. You can tell the process finished calculating the backtesting session once the progress date stops, and—eventually—disappears.
To see the backtest simulation on the charts, you first need to make sure that the Layers Manager for the corresponding session is visible in the design space. This is what enables the corresponding simulation layers on the Layers Panel.
To do that, go back to the backtesting session and click on the left-hand side.
Then, you may pull down the horizontal bar to go to the charts and see the simulation. Make sure you are standing on the 1-hour time frame. Notice the time box at the bottom of the charts:
If you are not at the 1-hour time frame use the wheel of your mouse while pointing at the charts to zoom in until you reach the 1-hour time frame. You do this so that you may see the results of the backtesting session, which in the case of the example strategies, are calculated and plotted over the 1-hour charts.
Now go the Layers Panel on the left-hand side of the screen and use the wheel of your mouse to scroll down until you find the layers starting with Back BRR or Back WHB, depending on your previous choice of strategy. Turn each of the layers on with a single click.
You may now navigate the charts by clicking and dragging, or by zooming in and out with the wheel of your mouse. If you change the time frame, you will not see the simulated data, as each time frame may hold its own set of simulations.
Congratulations! You've run your first backtesting session!
To learn more about how to interpret the information in the simulations, please refer to the Simulation layers page on this User Manual.












