There are a lot of limitations bots have when running in the cloud versus locally. For instance, you can't open network connections, send emails, read files, draw on charts, etc.
You haven't posted any code that's causing the issues, so nobody can really say for sure what's happening in your scenario unless someone from Spotware actually confirms there's a cloud issue.
Thanks for your help.
I'm reviewing all the code, I think it might be something related to displaying a control panel. I just find it strange that it used to work and then suddenly stopped working. That's why I think there was some change in the cloud environment.
Another thing I noticed are some alerts about changes in the ModifyPositions() method (new version with ProtectionType parameter), it seems that new overloads were created and new parameters. That's why I think there might have been some change.
Thanks again and I think the problem might be the control panel that shouldn't exist in the version that runs in the cloud, only in the local version.
Bars.LoadMoreHistory() does not work for backtesting at the moment. This feature will be added in a future release of cTrader.
Best regards,
Panagiotis
Thanks a lot!
One additional question: Previously, the Bars.OpenTimes.Count method brought more than 3,000 candles to the index. Today, I notice it is only bringing 200.
dudavianna
08 Jan 2025, 15:19
RE: Crashed in OnStart with ArgumentNullException: Value cannot be null.
firemyst said:
Thanks for your help.
I'm reviewing all the code, I think it might be something related to displaying a control panel. I just find it strange that it used to work and then suddenly stopped working. That's why I think there was some change in the cloud environment.
Another thing I noticed are some alerts about changes in the ModifyPositions() method (new version with ProtectionType parameter), it seems that new overloads were created and new parameters. That's why I think there might have been some change.
Thanks again and I think the problem might be the control panel that shouldn't exist in the version that runs in the cloud, only in the local version.
@dudavianna