Skip to content

Optimising Backtest Settings in Xen

This guide explains how to optimise your cTrader backtest settings before using Xen to analyse the results.

A clean optimisation process gives you more useful report data and helps Xen identify stronger parameter combinations, weak settings, and areas that need improvement.

Video Guide

Tip: Set the video quality to HD (1080p) in the player settings for the best viewing experience.

Why Optimisation Matters

Optimisation helps you test different input values and find combinations that perform better under historical market conditions.

Used properly, it helps you:

  • Improve strategy efficiency
  • Remove weak parameter ranges
  • Compare different combinations objectively
  • Generate better reports for Xen to analyse

Warning

Optimisation does not guarantee future profits.
A strategy can still fail in live conditions if it is over-optimised.

Before You Start

Make sure your cBot:

  • Builds successfully in cTrader Algo
  • Runs without runtime errors
  • Uses valid input parameters
  • Produces sensible backtest results before optimisation begins

Do not optimise a broken strategy.

What to Optimise

Focus on settings that directly affect strategy behaviour, such as:

  • Indicator periods
  • Entry thresholds
  • Stop loss values
  • Take profit values
  • Trade filters
  • Session settings

Avoid optimising too many inputs at once.

Note

The more variables you optimise at the same time, the harder it becomes to identify which settings actually improve the strategy.

Best Practice

Start with a small number of meaningful parameters.

A good process is:

  1. Backtest the baseline strategy
  2. Choose one to three important inputs
  3. Run optimisation
  4. Review the strongest result ranges
  5. Retest the best candidates
  6. Export the final report for Xen analysis

Avoid Over-Optimisation

A strategy can appear strong in historical tests but fail in real trading because it has been fitted too closely to past data.

Common warning signs include:

  • Extremely high profit with unstable equity
  • Very narrow winning parameter ranges
  • Large differences between neighbouring values
  • Strong results on one period only

Danger

Do not assume the best optimisation result is the safest setting.
Stable ranges are often more useful than a single perfect result.

What to Look For

When reviewing optimisation results, pay attention to:

  • Net profit
  • Drawdown
  • Profit factor
  • Number of trades
  • Consistency across parameter ranges
  • Balance between return and risk

The goal is not just to find the highest result.
The goal is to find settings that look robust and repeatable.

Using Xen with Optimisation Reports

Once your optimisation is complete, export the backtest or optimisation report and upload it to Xen.

Xen can help you:

  • Review optimisation outcomes
  • Identify weak settings
  • Compare parameter quality
  • Suggest areas for strategy improvement
  • Spot signs of curve fitting or poor robustness

Use this process for best results:

  1. Build and test a working baseline cBot
  2. Run a normal backtest first
  3. Optimise selected inputs only
  4. Review the strongest and most stable settings
  5. Export the report
  6. Upload the report into Xen for analysis

Success

The better your optimisation process, the more useful Xen’s report analysis becomes.

After optimising your strategy, the next step is to generate and access the report correctly.


Final Advice

Quote

Optimise with discipline.
Test small changes, review stability, and use Xen to analyse the results with context.