Consequences of running cbot for too long.

Created at 29 Jul 2021, 21:55
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!
IL

ilive

Joined 27.07.2021

Consequences of running cbot for too long.
29 Jul 2021, 21:55


When running CBot for a long time will affect the connection with ctrader, I tried deleting the app and reinstalling it but it's still the same.
Anyone know a way to go back to the beginning? Or do you know any other reason? Thank you very much .


@ilive
Replies

amusleh
30 Jul 2021, 09:41

Hi,

cBots has no effect on your system connection with cTrader, if something goes wrong when you run your cBot then it means your cBot is the problem and you should check the cBot code.


@amusleh

kenneyy_eur
01 Oct 2021, 21:38

RE:

ilive said:

When running CBot for a long time will affect the connection with ctrader, I tried deleting the app and reinstalling it but it's still the same.
Anyone know a way to go back to the beginning? Or do you know any other reason? Thank you very much .

Try reducing the number of for loops in your OnBar() or OnTick() event.  Best to use just 1 for-each / for loop and your bot wont grind to a halt overtime


@kenneyy_eur