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
- docs.mql4.com
OrderCloseTime - Trade Functions - MQL4 Reference
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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