How to check if a order is been executed.

 
I am testing an EA that place two order with "Order_Send and Stop type" command. In case one of them is actually executed the second one sould be cancelled.

I try to see HystoryOrder, open price for a select order..nothing. The only indication I have is print out of the tester function that advise the order is been executed, but I have no idea where and how find out this indication of executed order.

Could samebody give me an little (big) help?  
 
If I'm understanding you correctly, you are placing 2 limit orders & want to close the other when one order is hit.
The way I do this is simply to count the number of limit orders, when it becomes one I close all limit orders.
 
select each one in ordertotal, and check ordertype
 
Many tks for answer, meanwhile I find a very complicate way comparing time of each order...
Reason: