The problem:
An order is filled at the broker (my case IB). The status of the order is reported as "Partialled Filled", the NTMarketPosition returns 0. The client has no way to know how many shares so that an stop can be sent. This happens to me probably once or twice a week. There is usually a delay of a few ticks once in a while and the status is returned. That is not the problem. The problem is the orders where the status is never returned. I have stayed waiting for the MarketPosition and status to change for about 2 minutes. I found that if I shutdown NT (That is correct in the middle of trading) and restart the status and MarkePosition are immediatelly retuned upon restart. Of course my code is smart enough to detect the disconnect from NT and then reconnect.
This interim solution is not satisfactory because you still need to be baby sitting the trades. I would like to be able to trade FX overnight without having to worry about this. This is the only road block so far.
Moscu
Comment