Are instances of a cbot multi-threaded?

Created at 17 Oct 2019, 18:09
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!
TE

tentcows

Joined 15.06.2019

Are instances of a cbot multi-threaded?
17 Oct 2019, 18:09


I want to run my cbot on many pairs, over 20. 

I have a 32 core machine that I'd like to take advantage of, but I'm not sure, would it be better to have a single cTrader program open, with the cbot having an instance created for every pair, in which case I would hope all the cores of the machine would be used, and not all of the instances loaded on a single core. Or alternatively, I could run multiple cTrader programs, one for each pair I want to trade, and then each program has only a single instance with just one pair running.

Which would you recommend for the best performance?


@tentcows
Replies

PanagiotisCharalampous
18 Oct 2019, 08:08

Hi tentcows,

cBot instances run on different threads but they are still controlled by the main UI thread. So if a high number of cBot instances is running on one cTrader instance then this might cause some bottlenecks. I would propose a hybrid solution, to have 3-4 cBot instances running on each cTrader instance.

Best Regards,

Panagiotis


@PanagiotisCharalampous

firemyst
23 Oct 2019, 10:39

RE:

Panagiotis Charalampous said:

Hi tentcows,

cBot instances run on different threads but they are still controlled by the main UI thread. So if a high number of cBot instances is running on one cTrader instance then this might cause some bottlenecks. I would propose a hybrid solution, to have 3-4 cBot instances running on each cTrader instance.

Best Regards,

Panagiotis

Great tip for everyone @Panagiotis ! Thanks for sharing!


@firemyst