Cbot crashing after backtesting
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!
Replies
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
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