How to deal with cBot freezes

Created at 01 Jun 2024, 10:50
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!
MI

Mike-FP

Joined 09.03.2021

How to deal with cBot freezes
01 Jun 2024, 10:50


cBots that operate on OnTick() and cBots that operate on Renko Ashi charts with OnBarClosed() have a problem where memory overflows and they freeze frequently when the number of cBots increases.

To avoid this problem, I have found that we can reset the cBot by turning the Start button on/off almost every days.

However, this task is very painful!

The cause is probably a memory overflow of Tick Data.
In the case of MT4, a similar problem occurs when the number of tick-operated EAs increases.

However, in the case of the MT4 platform, as shown in the screenshot,
we can select and adjust Max bars in charts, so we can run many EAs at the same time.


I would like cTrader Developers to add an Option menu to cTrader Desktop that allows us to select and adjust Max bars in charts so that we can run many cBots smoothly without freezing.


@Mike-FP
Replies

PanagiotisCharalampous
02 Jun 2024, 11:22

Hi there,

It would be more helpful if you could share with us cBot code and steps to reproduce the problem.

Best regards,

Panagiotis


@PanagiotisCharalampous

firemyst
02 Jun 2024, 12:06 ( Updated at: 03 Jun 2024, 05:09 )

I have the same issue with cTrader freezing completely and being totally unusable. For me, it always occurs on Renko Charts. 

Other users have reported this issue as well, so we're not alone:

https://ctrader.com/forum/ctrader-algo/44014

https://ctrader.com/forum/ctrader-support/43974

 

I've made a video showing the issue, and will try to email Spotware soon showing the problem when I can upload the video to YouTube.


@firemyst

firemyst
11 Jun 2024, 08:27

I've reported the issue to Spotware and they are looking into it.

My cTrader desktop versions updated to 5.0.25 today and the “freezing” issue is still there (occurred in less than 15 minutes when starting all my bot instances), so still can't run bots! :-(


@firemyst

firemyst
13 Jul 2024, 12:26 ( Updated at: 14 Jul 2024, 06:31 )

For the latest and follow up discussions, see this thread:

https://ctrader.com/forum/ctrader-algo/44215

 


@firemyst