I am testing a strategy on IB Paper trading. The strategy is supposed to run 24 hours as it deals with FX.
I have indicated in Initialize() all the connection parameters such as
DisconnectDelaySeconds
MaxRestartMinutes
MaxRestartAttempts
ConnectionLossHandling (KeepRunning)
RestartDelaySeconds
My OnConnectionStatus method doesn't do anything particular apart resetting some parameters.
What I noticed is that when IB updates its servers, NT simply crashes. Last night I have observed 3 crashes
1 at 00:30 CET time
1 at 06:04 CET time
1 again at 07:32 CET time
Given the IB resetting schedule for Europe between 05:45 -06:45 CET time, the 2nd might be due to this but the 2 others I don't know the reason behind.
In any case the bad thing is, NT7 simply crashes, giving me the bad surprise of a small window telling me NT7 stopped functionning and I have to click ok to close it down or debug it.
My understanding is we should not have these crashes. And going through the forum I see a lot of people having their strategies simply disabled but they don't see these NT crashes.
So my questions are
1- what could be the source of these disconnections ? I suppose this has to be answered by IB
2- How to avoid NT crashing when these connections are seen ?
I can send you the trace file where you can see the times mentionned above where I had to restart NT7 manually. I don't see myself any reason for these NT7 crashes in the trace file. But will appreciate an expert eye to see how to fix this issue?
Thanks for the help
Comment