I use IB as my broker and very often the day I'm loosing the connection. (at the morning hours separatly for different markets) Just for seconds but somtimes a little bit longer. How should I synchronize any positions I'm running by a NinjaScript strategy? Is there an example for a synch of that? Currently I check at reconnection the ope positions and if there is any stop order associated with that. If not, then I close the position at market an reset all my vars in the code. Is that a good idea? I'm not sure. An other way to solve this is to place a stop into the market protecting the open position.
Any ideas?
Many thanks
cicondo
Comment