The Backtesting interface is a feature-rich platform that enables you to code, modify and backtest potential trading strategies.
Tabs located at the top of the page provide access to the following:
- C# development console
- Backtesting history
- Exchange/trading options
- a TradingView chart that plots price, indicator data, and trade events
When you are satisfied with your algorithm’s execution and performance you can publish it as either a private or open source strategy – also done from the Backtesting interface.
Below are descriptions of the most important components to get you started.
If your code compiles successfully and there are no runtime errors, then “Run Backtest” will open a “Results Window” and display the progress of the backtest. This can take a few seconds or up to several minutes depending on the complexity of your algorithm.
Initially, the Engine will retrieve the complete set of candles for the period (start to end dates) during which you are applying your backtest. Once all candles have been retrieved, the price chart will draw and backtest progress will be displayed in the area above the chart.
After the backtest has run to completion, various tabs below the chart provide useful information, such as:
- Backtest statistics
- Order history for the period
- Algorithm logs
The History window lists your previously completed backtests in chronological order. You can also sort them by name, timeframe, profitability, etc.
The last 50 successful backtests are listed for review and inspection. You can access any of these – with the code, configuration and options as they were for each backtest – by clicking on the magnifying glass button.
You will be able to view the backtest results and you may choose to edit and re-run the backtest from that previous state.
Be aware that only the last 50 completed backtests are stored. To avoid losing previous successful backtests (along with their code and configuration), be sure to either publish a desired backtest as a strategy, or delete irrelevant backtests from the history list via the pink “Delete” button.