How to code to know the order was closed.

Cromo
393
Cromo  

Can you give me some idea?

I have some orders now.

I want to know the order (one of them) was closed , then I want to know immediately.

Do you have any idea how to know about it by mq4 code?

Keith Watford
Moderator
29862
Keith Watford  
Cromo:

Can you give me some idea?

I have some orders now.

I want to know the order (one of them) was closed , then I want to know immediately.

Do you have any idea how to know about it by mq4 code?

Select the order and check OrderCloseTime().

If it doesn't equal 0, the order id closed.


Topics concerning MT4 and MQL4 have their own section.

In future please post in the correct section.

I will move your topic to the MQL4 and Metatrader 4 section.