Hey. Iv recently been running into problems with TWS disconnecting from IB. I was wondering if there was a way to set it up so my limit orders are automatically cancelled if the connection between TWS and IB is lost. I run an automated system that modifies limit orders depending on market state, if I lose connection with IB the limit order has a chance of being hit during unwanted state.