lets presume we are flat corn futures, then we send a market order to BUY 1 corn contract. Then we constantly call OrderStatus() every tick to find out if order was filled or rejected. Lets say it was in fact filled. My question is: Is it possible that even though OrderStatus() is returning "Filled" that when I call NTmarketPosition("") i get a return of zero which means the position in broker account has not updated yet to 1.
Or is it the case that once OrderStatus() is returning "Filled" then NTmarketPosition() will always be correct and "up-dated"?
What is the sequence order of events here, does the order get filled first and then the position is updated in NT / broker account? or is it visa versa?
my TS EL code waits for a fill first via calling orderstatus and then it calls NTmarketposition next to see if the new order has been updated in my broker account. Is this the best way to go in relation to coding order handling? My goal here is not to put on the same order twice.
thanks in advance.
regards
Rod
Comment