Backtesting.Start()

Created at 06 Feb 2025, 07:47
EK

ekalyvio

Joined 13.06.2023

Backtesting.Start()
06 Feb 2025, 07:47


Hello.

You have the following link (https://help.ctrader.com/ctrader-algo/guides/plugin-backtesting/) about back testing from a plugin.

The problem is that most of the times, cBots require parameters. On the documentation page you have the function declaration as:

BacktestingProcess Start(RobotType robotType, string symbolName, TimeFrame timeFrame, BacktestingSettings settings, params object[] parameterValues);

I tried to pass parameter on the parameterValues parameter but unsuccessfully. It seems like it doesn't work. The cBot runs only with the default parameters.

Would you mind sharing a real working example please?

 

Thank you.

Efthymios

 


@ekalyvio