AlgoScriptX
Algorithmic backtest equity steps on a trading chart

How to Backtest a cTrader cBot Before You Buy or Run It

How to backtest a cTrader cBot properly: tick vs M1 data, real spread and commission, optimisation without overfitting, demo tests and vendor red flags.

Short answer: before you buy or run a cBot, repeat the seller’s backtest yourself in cTrader. Use tick data from the server, your broker’s real commission, a spread at least as wide as the one you see when the bot trades, and a test period of several years. Then check the settings on data they were not optimised on, and run the bot on a demo account for a few weeks. A seller’s screenshot is a claim; your own run with your own costs is evidence.

A backtest is only as honest as its inputs: data source, spread, commission and period. Most misleading backtests are not fake, just run with friendly settings. Backtesting runs in the cTrader desktop apps for Windows and Mac, not in the web or mobile apps. Platform facts below come from the cTrader help centre, checked in October 2026. If the cBot is not installed yet, start with how to install an .algo file in cTrader.

Before you start: get a testable copy and the seller’s settings

  • A file you can run. cTrader bots arrive as compiled .algo files. On AlgoScriptX each cTrader tool comes with a license key, and selected products offer a free 7-day demo license. If a licensed bot does not start in the backtester, ask the seller how to test it before you pay.
  • The parameter set. cTrader can save a cBot’s parameter values as a .cbotset file. Ask for the one behind the published results.
  • The test conditions. Symbol, timeframe, period, data source, capital, spread and commission.
  • The full report. cTrader saves a backtest as an HTML report that opens in any browser. Ask for that, not a cropped equity curve.

Step 1: Pick the data source

Select the cBot instance, open the Backtesting tab and click the cog icon for the settings. cTrader offers four data sources:

Data sourceWhat it isWhen to use it
Tick data from serverEvery recorded price change; per the help centre the most accurate sourceFinal checks, and any bot with tight stops or targets or logic that reacts to every tick
M1 bars from the serverOne-minute bars; per the help centre a good compromise between accuracy and resourcesFirst passes and long optimisations of slower bots
M1 bars in CSV fileOne-minute bars from your own fileTesting on data from another source
H1 bars from the serverOne-hour barsRough checks of slow strategies only

Why it matters: a bar stores only open, high, low and close. If one candle touches both your stop loss and your take profit, bar data cannot show which came first, so the test must assume a path, and with stops a few pips away that assumption can decide the result. Each tick records a bid and an ask price. Explore on M1, confirm on tick data, and trust the tick run if the two differ.

Step 2: Enter the costs you will actually pay

  • Commission. The help centre describes this setting as a rate per million traded units. Your broker decides whether commission applies, how much it is and how it is calculated, and the symbol information in cTrader’s Active Symbol Panel shows it per symbol. Version 5.10 added further commission types, so your settings may offer more choices. After the run, divide the Commission figure in the trade statistics by the number of trades and compare it with what your broker charges per trade.
  • Spread. Choose a fixed value (from a list, a custom figure or the symbol’s current spread) or a random spread between a minimum and a maximum. Set it at or above what you see during the hours the bot trades.

The settings described in the help centre have no slippage field; if you expect slippage, add it to the spread you test with. Then run the same test again with clearly higher costs. A bot whose profit disappears when costs rise a little has no margin for live trading. Our scalping cBot checklist works through the cost arithmetic with an example.

Step 3: Choose period, capital and size

  • Test several years, including calm phases, trends and sharp moves, and count trades as well as years: 40 trades in five years tell you far less than several hundred.
  • Use a starting capital and position size close to what you will trade. The help centre notes that money settings such as starting capital are entered in USD.
  • Test the symbol and timeframe the bot was built for, then a related symbol. A rule that works on one pair in one period only deserves extra doubt.
  • Note the cTrader version. Since 5.9 (July 2026) the backtester closes open positions at the end of a test and applies margin and stop-out rules aligned with live trading, so a report from an older version may not match yours.

Step 4: Read the report

The Equity tab plots balance as a yellow line and equity as a grey zone against the number of trades. The Trade statistics tab lists the figures. What to check:

FigureWhat to check
Profit factorGross profit divided by gross loss; a value close to 1 leaves no room for higher costs
Max balance and max equity drawdownBalance counts closed trades; equity includes open positions. A large gap means the bot sits through big floating losses, typical of grid or martingale logic
Total tradesA small sample can be made by a few lucky trades
Largest winning tradeSubtract it from net profit and see what is left; the help centre’s own example reads one outsized trade as “potential for making risky plays”
Max consecutive losing tradesCould you sit through that streak with real money?
Average tradeIf it is only slightly larger than your cost per trade, small cost changes decide the result

Run a few weeks in visual mode too: it replays the test at adjustable speed, so you can check that entries and exits match the bot’s description. Then save the HTML report with the Save icon at the top right; it adds ROI, entries over time and wins and losses over time, which makes runs easy to compare.

Step 5: Optimise without fooling yourself

The Optimisation tab runs many backtests with different parameter values. You tick the parameters to vary and pick criteria to maximise or minimise, such as net profit, winning trades or maximum equity drawdown, or a custom fitness value from the cBot’s code. Grid tests every combination; the Genetic Algorithm is a guided search that the help centre recommends because it is less resource-intensive.

The danger is overfitting. Out of thousands of passes, the best one is partly the best fit to past noise, and it often does worse on new data. Ways to keep it honest:

  • Hold data back. Optimise on the earlier part of your history only, for example the first two thirds, then run one plain backtest with the chosen settings on the rest: your out-of-sample test.
  • Roll it forward. We found no built-in walk-forward mode in the help centre, but you can do it by hand. Optimise on one window, test on the next, move both forward.
  • Prefer plateaus to peaks. If a 20-pip stop works but 18 and 22 fail, the 20 is probably luck. Settings whose neighbours also work are sturdier, and fewer optimised parameters leave less room for luck.
  • Look at a range of outcomes. Since version 5.10, cTrader can run a backtest or optimisation result through randomised Monte Carlo simulations. A range of possible drawdowns says more than one path.

When a seller shows optimised results, ask which period the parameters were optimised on. If it is the period on the chart, you are looking at an in-sample result.

Step 6: Forward test on a demo account

A backtest cannot fully show live fills, slippage or spread spikes. Run the bot on a demo account with your planned broker and account type for a few weeks, or until it has traded enough to compare. Then backtest those same weeks with the same settings and compare trade by trade. Large differences point to a cost, data or logic problem worth finding before real money is involved.

Then decide where the bot runs: locally, with your computer and cTrader switched on, or in cTrader Cloud. The cloud allows one instance on a demo account, which stops after 7 days and can be restarted, and up to 10 on live accounts; limits can vary by broker. A cBot that checks its license online may need to run locally, so ask the seller. For funded accounts, also read our prop-firm cBot checklist.

Red flags in vendor backtests

  • Screenshots only, with no HTML report and no parameter file.
  • No data source, spread or commission stated, or zero commission on an account type that charges it.
  • Bar data for a bot whose stops are only a few pips wide.
  • A short period, or one that starts and ends exactly where the curve looks best.
  • A nearly straight equity line with a very high win rate, and balance drawdown shown but equity drawdown missing.
  • Profit that comes from a few very large trades.
  • Parameters optimised over the whole period shown, with no out-of-sample test.
  • A different symbol, timeframe or account size from the one being sold, or past results presented as expected monthly returns.

None of these proves a bot is bad, but each is a reason to run your own test before you pay.

Checklist

  1. Get the .algo, the seller’s parameter file and the test conditions.
  2. Backtest the documented symbol and timeframe on tick data from the server.
  3. Enter your broker’s commission and a realistic or wider spread, plus expected slippage.
  4. Cover several years, then rerun with higher costs.
  5. Check equity drawdown, trade count, largest trade and average trade, and watch a few weeks in visual mode.
  6. If you optimise, keep the last part of the data for one out-of-sample run.
  7. Run on demo, then backtest the same weeks and compare trade by trade.
  8. Go live with the smallest size your broker allows and a loss limit you can accept.

Frequently asked questions

Is tick data or M1 data better for backtesting in cTrader?

Tick data, for final checks and for any bot with tight stops, targets or tick-by-tick logic; the help centre calls it the most accurate source. M1 is faster and fine for exploring slower bots.

Why does my backtest differ from the seller’s?

Usually the data source, costs, period, capital, parameters or cTrader version differ, and brokers quote slightly different prices. Ask for the seller’s settings and parameter file and match them one at a time.

Can I backtest a cTrader indicator?

Not on its own. The backtester runs cBots, so an indicator’s signals have to be traded by a cBot. Our cTrader vs TradingView comparison covers backtesting on both platforms.

Does a good backtest mean the cBot will make money?

No. A backtest shows how fixed rules behaved on past data under the costs you chose, and markets change. Any bot can lose money, and trading carries a real risk of loss.

The AlgoScriptX catalogue is small at the moment; browse the current cTrader cBots, cTrader indicators or the full marketplace.

Sources (October 2026): cTrader help on backtesting, optimisation and the Algo changelog.

Leave a Reply

Your email address will not be published. Required fields are marked *