How to code to know the order was closed.

 

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?

 
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.

Reason: