I noticed a new problem with IB connection, sometimes when i request data (using either getdata history or timeseries ), the code stuck in the while loop:
i suspect it happend due to using " ib = ibtws('',7496)" , i may have connect + disconnect from TWS too often ?? Or did i request data too often from TWS ? the only solution to make data request work again, is to quit Matlab, and re-launch Matlab, or re-launch TWS
Anybody experienced the same problem before ?
once " ib = ibtws('',7496)" is established, how long does this connection stay?? how to make sure i keep the connection stay there in practice ?
How to reconnect with IB, without stuck in the data request while loop ?? Please help