How to Backtest and Access Reports in cTrader for Xen
This guide explains how to run a backtest in cTrader and export the report so it can be analysed by Xen.
Backtesting is a required step before using Xen’s report analysis feature. The quality of your report directly affects the accuracy of the insights.
Video Guide
Tip: Set the video quality to HD (1080p) in the player settings for the best viewing experience.
What Backtesting Does
Backtesting allows you to run your trading strategy on historical market data to evaluate its performance.
It helps you:
- Validate strategy logic
- Measure profitability and risk
- Identify weaknesses
- Prepare data for optimisation and analysis
Before You Start
Ensure your cBot:
- Compiles without errors
- Runs correctly in cTrader Algo
- Has valid input parameters
- Produces expected behaviour on a chart
Warning
Do not run a backtest on incomplete or broken code.
Fix issues first before generating reports.
Running a Backtest in cTrader
Follow these steps:
- Open cTrader Algo
- Select your cBot
- Click the Backtesting tab
- Choose:
- Symbol (e.g. EURUSD)
- Timeframe
- Date range
- Initial balance
- Configure spread and commission if required
- Click Start
Allow the test to complete fully before reviewing results.
Reviewing Results
After the backtest completes, review the key metrics:
- Net profit
- Drawdown
- Profit factor
- Number of trades
- Equity curve behaviour
Look for consistency rather than extreme results.
Accessing the Backtest Report
Once the test has finished:
- Click on the logs tabs
- Click on the folder icon top right.
- Copy the report.html and parameters.cboset files
- Paste them in your documents folder or any folder for easy access
These sections contain the data Xen will analyse.
Exporting the Report
To use Xen’s analysis feature, you need to export the report.
Typical export options include:
- HTML report
- Parameter settings file
Save the report locally.
Note
Use a complete report. Partial data may reduce the quality of Xen’s analysis.
Preparing the Report for Xen
Before uploading:
- Ensure the report covers a meaningful time period
- Avoid very short tests with few trades
- Confirm the data reflects the strategy you want analysed
Good reports usually include:
- Sufficient number of trades
- Realistic settings
- No obvious errors or anomalies
Using Xen for Analysis
After exporting your report:
- Upload the report into Xen
- Request analysis
- Review the feedback provided
Xen can help you:
- Identify strengths and weaknesses
- Highlight risk issues
- Detect overfitting
- Suggest improvements to your strategy
Recommended Workflow
Use this process:
- Build and test your cBot
- Run a full backtest
- Review results manually
- Export the report
- Upload to Xen
- Apply suggested improvements
- Repeat testing
Success
Consistent backtesting combined with Xen analysis leads to more reliable strategies.
Related Guide
Before running backtests, you should optimise your strategy inputs:
Final Advice
Quote
Backtesting provides the data.
Xen helps you interpret it correctly.