This sadly is not possible. Arjfca recently created a feature request for it: MC-512 - Adding a function for reading the status of an order on the broker server
. It has already received 8 votes within a week - clearly something that is highly wished by the community.
Edit#2: A similar feature request
has been made in January, and has been 'under review' since January 14th. How disappointing that there is no (for me) visible progress in this area.
champski wrote:I might be wrong in assuming this but with the code above, is there any risk that while the first BUY order is pending and not yet filled a second BUY order could be sent. Therefore, resulting in the unintended purchase of 2000 shares instead of 1000?????
Good question - I'd also like to know this. Can MC Support comment on this?
champski wrote:In MC7, I see there is the "Order and Position Tracker" feature. Can this feature be used through automated trading and if so, could it provide benefit to what I am talking about (or is my assumption of doubling-up just incorrect)
In my opinion the Order and Position Tracker cannot be used as a way to check on the strategy orders, given that orders in the OPT can turn up 2x (or even 4x) while there in fact was only one order triggered. As far as I know, MC Support is working on this.
Edit: See this thread
for more about that Champski.
champski wrote:I thought you needed a live account with IB before you could use an account that is useable through MC. It's called a papertrader account. Is that what you are talking about??
Haven't tried that specific account, but with my IB demo papertrading account I have no trouble to let MC autotrade it.