On CLI Server.Connected and Bars.Reloaded events are not triggered

Created at 23 Jul 2023, 10:18
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!
EY

eynt

Joined 08.05.2020

On CLI Server.Connected and Bars.Reloaded events are not triggered
23 Jul 2023, 10:18


When running a cBot via CLI, the Server.Connected and Bars.Reloaded events are not triggered. instead the OnStart is triggered (Server.Disconnected is working fine).

Update: Not only the events are not triggered but all instances of classes are set to null upon the reconnection. That of course changes the entire behaviour of the cBot.

 

Is this a bug or expected behaviour? Is there a way to work around it?

 

Thanks


@eynt
Replies

Spotware
24 Jul 2023, 07:29

Dear trader,

Thank you for reporting this issue to us. It is a bug and will be fixed in an upcoming update.

Best regards,

cTrader Team


@Spotware