I run an automated strategy on NinjaTrader 8 hosted via QuantVPS from 6 PM to 8 AM. Occasionally, the output log shows the following errors:
- “Strategy lost order connection but will keep running.”
- “Strategy lost price connection but will keep running.”
When the connection is restored, the chart remains frozen and does not update in real-time until I either manually toggle the connection or reload all historical data. This behavior disrupts the live execution of the strategy, effectively freezing both the chart and the strategy.
Please advise on how to prevent the chart and strategy from freezing after a temporary disconnection. Also is there any logic that I can build into the script that would automatically refresh chart price when connection is back without interrupting the strategy?