Cbot crashing after backtesting

Created at 09 Mar 2025, 16:22
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!
KA

kabbajjad

Joined 30.06.2022

Cbot crashing after backtesting
09 Mar 2025, 16:22


Hello,

I noticed that my cbot (which contains many objects : chart.DrawVerticalLine ; chart.DrawText ; 4 MAs ; 1 Supertrend) crashed after backesting no matter when I am on Visual Mode or without Visual Mode. 

It's at the end of the backtesting it takes an infinite amount to load and delete my objects from the screen.

Thanks for your help!

 


@kabbajjad
Replies

claudiorubbiani
10 Mar 2025, 11:42

You can invoke the Chart.RemoveAllObjects() to have everything deleted in one shot.

I would limit the number of objects drawn on the chart during backtesting.

 

Ciao,

Claudio


@claudiorubbiani

kabbajjad
11 Mar 2025, 09:54

RE:

Thanks I will test that and update you!

claudiorubbiani said: 

You can invoke the Chart.RemoveAllObjects() to have everything deleted in one shot.

I would limit the number of objects drawn on the chart during backtesting.

 

Ciao,

Claudio

 


@kabbajjad