How can i know if order is open or close ?

 

Hi,


i have a ticket number of order and i want to know if the order is open or close

i tried the function 

OrderSelect(ticket,SELECT_BY_TICKET)

and its return me true even when i close the order with the " ticket " number 

 
Netanel Tanami: i have a ticket number of order and i want to know if the order is open or close.i tried the function and its return me true even when i close the order with the " ticket " number 
Once you have selected the Market Order with the "OrderSelect" function, use the "OrderCloseTime" to find out if it is closed or not. If the close time is not 0, then the order has been closed. See the documentation for more details.
OrderCloseTime - Trade Functions - MQL4 Reference
OrderCloseTime - Trade Functions - MQL4 Reference
  • docs.mql4.com
OrderCloseTime - Trade Functions - MQL4 Reference
Reason: