I'm using tradestation + NT DLL.
Let's assume my position at my broker is FLAT and then suddenly a tick flows through on the tradestation charts which causes tradestation to send a BUY order to NT. If i then call OrderStatus() and it returns "filled", does this mean that calling NTmarketPosition() straight after calling OrderStatus() will certainly return a value of 1 ?
In other words, once the order has been filled, how long does it then take for NTmarketPosition() to update to reflect the new position (ie flat, long, short)?
In my tradestation code, is it safe to call NTmarketPosition() straight after OrderStatus() is returning "filled"? or should i wait say 1 second or 500 milliseconds after OrderStatus() returns "Filled" before i call NTmarketPosition() to check what my true position is at my broker?
Im thinking that once OrderStatus() is telling me that my order has been "filled" it still might take another 100-500 milliseconds for NTmarketPosition() to update after the order has been filled? Is this a fair estimation?
Thanks in advance.
Regards
Rod
Comment