I have a strategy that plots a few indicators.
All is well until I lose connection. I want the strategy to keep running and pick up where it was when the connection is restored. I have the following code to achieve this.
RealtimeErrorHandling = RealtimeErrorHandling.IgnoreAllErrors;
ConnectionLossHandling = ConnectionLossHandling.KeepRunning;
DisconnectDelaySeconds = 600;
NumberRestartAttempts = 40;
RestartsWithinMinutes = 5;
I find that the indicators are being created on the chart after each loss of connection. Is there a way to avoid this, or delete the old versions of the indicators upon restart. The indicators can't be deleted manually as they are 'locked' by the strategy.
Thanks
Ian
Comment