Consequences of running cbot for too long.
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 .
Replies
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
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