cBot instances vs duplicated cBots

Created at 01 Feb 2022, 00:48
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!
NC

ncel01

Joined 19.03.2020

cBot instances vs duplicated cBots
01 Feb 2022, 00:48


Hello,

 

I was thinking of creating several copies of a cBot, so that I can split multiple cBot instances among these copies (for management purposes only). However, I would like to know if this would be feasible and equivalent to a single cBot in terms of performance, outcome, etc.

Below is an example with only 2 cBot copies (case 2), however more would be needed in my case:

++++++

Case 1 :

cBot 1 (5 instances running):

- Instances: A, B, C, D, E

++++++

Case 2 (alternative) :

cBot 1 copy (exact same source code)

- Instances: A, B

CBot 1 copy (exact same source code)

- Instances: C, D, E

++++++

 

Is there any limitation or something I should be aware of, if I follow case 2, since my intention is to have the exact same results as in case 1?

Should I assign a different RobotName to the class (shown below) for each cBot copy, maybe? Is this relevant in such a case?

public class RobotName : Robot

 

Thank you!

 

 

 

 

 


@ncel01
Replies

amusleh
01 Feb 2022, 07:47

Hi,

Copying a cBot doesn't give you any benefit at all, each running instance of a cBot runs fully separated from all other cBots running instances.


@amusleh

ncel01
01 Feb 2022, 12:03

RE:

amusleh said:

Hi,

Copying a cBot doesn't give you any benefit at all, each running instance of a cBot runs fully separated from all other cBots running instances.

Hi amusleh,

Thanks for your reply.

The benefit was to have the instances separated in groups, where each group is a cBot copy.

What would be the main issue here? Performance?

Is the strategy outcome/behaviour expected to be the same for both these cases?

 

Thank you!


@ncel01

amusleh
01 Feb 2022, 12:38

RE: RE:

ncel01 said:

Hi amusleh,

Thanks for your reply.

The benefit was to have the instances separated in groups, where each group is a cBot copy.

What would be the main issue here? Performance?

Is the strategy outcome/behaviour expected to be the same for both these cases?

 

Thank you!

Hi,

If you want to duplicate a cBot for grouping then yes you can and it will not have any effect on it's performance.


@amusleh

ncel01
01 Feb 2022, 13:13

RE: RE: RE:

amusleh said:

ncel01 said:

Hi amusleh,

Thanks for your reply.

The benefit was to have the instances separated in groups, where each group is a cBot copy.

What would be the main issue here? Performance?

Is the strategy outcome/behaviour expected to be the same for both these cases?

 

Thank you!

Hi,

If you want to duplicate a cBot for grouping then yes you can and it will not have any effect on it's performance.

amusleh,

That's the only purpose in fact.

Should I provide different names to the main class ( public class cBot_copy_n : Robot) for each cBot copy or, is this not relevant?

Thank you!


@ncel01

amusleh
01 Feb 2022, 15:38

RE: RE: RE: RE:

ncel01 said:

amusleh,

That's the only purpose in fact.

Should I provide different names to the main class ( public class cBot_copy_n : Robot) for each cBot copy or, is this not relevant?

Thank you!

Hi,

It doesn't makes any difference if you use same class name or different class names.


@amusleh

ncel01
01 Feb 2022, 16:50

RE: RE: RE: RE: RE:

amusleh said:

ncel01 said:

amusleh,

That's the only purpose in fact.

Should I provide different names to the main class ( public class cBot_copy_n : Robot) for each cBot copy or, is this not relevant?

Thank you!

Hi,

It doesn't makes any difference if you use same class name or different class names.

amusleh,

Great. Thanks for clarifying!


@ncel01