cat /guide/backtesting
Backtests and optimisers
A strategy on the chart is backtested on the chart's own history in a Backtests panel, with checks of how robust the result is and optimisers that can be added to a strategy.

The Backtests panel
With a strategy on the chart, the Backtests panel beside it shows how that strategy's trades would have done on the chart's history: an equity curve, the result figures, drawdown, the list of trades, the spread of returns, returns by month and a Monte Carlo simulation.
It works for Eclipse's strategies (Ceres, Enzo, PerpKit's strategy, and the strategy of the nOHLC and nHA chart types) and for strategies a user writes in CharmScript. The user sets the starting capital, leverage, fees, slippage and a date range.
A backtest is hypothetical: it describes the past and does not predict or promise future results.
What the figures mean
- Net Return: The total gain or loss, as a percentage.
- Profit Factor: Gross profits divided by gross losses.
- Maximum Drawdown: The largest fall from a peak to the low that followed.
- Recovery Factor: Net profit divided by the maximum drawdown.
- CAGR: The return as a yearly rate.
- Sharpe Ratio: Return measured against how much it swung.
- Hit Rate: The share of trades that made money.
- Total, Best, Worst and Mean Trade: How many trades there were, the largest win, the largest loss and the average.
- Expectancy: The average result of a trade, measured against the amount risked.
- Skewness and Kurtosis: The shape of the spread of trade results: how lopsided it is, and how heavy its extremes are.
What a backtest assumes
Trades are taken on closed candles: a signal on the candle still forming is not counted until it closes. Fees, slippage and leverage are the user's own settings, and the result changes with them. The figures are percentages of the account, so they do not depend on the starting capital. It covers the candles the chart holds, which depends on the plan.
Robustness checks
Four optional cards ask whether a backtest result can be trusted, in place of taking one good-looking number at face value:
- K-Fold Cross-Validation (Pro and Premium): Cuts the backtest into equal stretches of time and shows whether the strategy held up in each.
- Walk-Forward Analysis (Pro and Premium): Shows how the strategy would have done trading each stretch with the setting that looked best before it.
- Parameter Stability (Premium): Backtests the settings around the one chosen, to show whether the result depends on one lucky value.
- Overfitting Probability (Premium): Estimates how likely the result is a product of fitting the past.
Optimisers
An optimiser is added to a strategy from its settings and changes which trades it takes or how large they are:
- Enigma (Premium): Proprietary algorithm for parameter optimisation and position sizing with overfitting control.
- ROI Curve Filter (Pro and Premium): Pauses new trades while the ROI curve is on one side of its moving average, and trades again once it is back.
- Gradient Boosting sizing (Premium): A sizing model: it sets the size of each trade from what it has learned of the chart's own past trades.
The panel shows the strategy's original result beside the optimised one. An optimiser does not guarantee a better result.