No, don't do this.
Suppose your system wants to be long 2 contracts, and that is your actual position. There is a system glitch, and your position on IB goes to zero. So you buy 2 contracts. Then the glitch is cleared, and now you're long 4 contracts. So you sell 2 contracts. You get the...