How to perform backtesting with multiple bots running simultaneously in cTrader?

Created at 17 Jan 2025, 10:07
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
KA

kaxalope

Joined 02.04.2024

How to perform backtesting with multiple bots running simultaneously in cTrader?
17 Jan 2025, 10:07


I’m planning to create a hedging bot based on the functionality of my other bots. To achieve this, I would like to backtest all my bots running simultaneously.

My idea is to develop a bot called BacktesterManager, which would handle the instantiation of all the bots.

I tried importing the bots directly into cTrader, but it doesn’t seem possible. Another approach I’m considering is compiling the bots into .dll files using Visual Studio, then importing these dependencies into BacktesterManager. This way, I could initialize the bots and perform the backtesting. However, when I attempt to compile the bots, I encounter an unresolved error related to cTrader.Automate.

Is there a way to resolve this, or is this approach entirely unfeasible?

If it’s not possible, my fallback solution would be to manually copy the code of each bot into a single bot, but that feels tedious and less efficient.


@kaxalope