cBot RSI value freezes after a reconnection - Have to stop and start the bot

Created at 20 Sep 2022, 14:12
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!
OD

OdinFx

Joined 08.09.2022

cBot RSI value freezes after a reconnection - Have to stop and start the bot
20 Sep 2022, 14:12


Good Day,

 

Please could someone assist me with an issue that has plagued my bot since day one.

The internet in my area is sometimes unstable, the platform loses connection and will then reconnect. The issue I have is that even after it reconnects, the rsi.Result.LastValue and rsi.Result.Last(1), both will stay frozen on the last value before it disconnected.

The indicator on the screen updates correctly, but the value in the code stays frozen. After I stop the bot and start it again then it works like normal.

What could be the issue?

 

Regards

Nic


@OdinFx