Thanks god I was trading the simulator today.
I lost connection 4 times with IB Server today.
In one trade I lost 500$ (on the simulator !) because I was working a buy order when I lost connection. When I reconnected I was down 500$ while my stops are set to 100$.
It could have been worst !
Here is the problem I am facing.
I am using the Unmanaged order strategy and my system always buys and sells on stop. I cannot send the stop order before I have my fill on my entry so I am using the OnExecution method to send the stop once I get my fill.
If I lose connection before my entry is triggered I run the risk of being filled while out of connection with no stop working at all !
Is there a way I could avoid that BIG problem in my code !
Thank you very much for your help.

Comment