parham.trader: I'm saving the ticket number of the placed orders
if the order is deleted then the OrderCloseTime() of the order would be different from 0 ? |
|
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 friends,
I've coded an EA that opens and deletes orders based on some situation. I'm saving the ticket number of the placed orders and by new ticks come in, I repeatedly check them for further calculations by using OrderSelect function with their ticket numbers that have been saved previously.
Now I want know how can I find out whether the selected order exists or it's been deleted from the orders book.
I'm not sure do I need to check the OrderCloseTime() of the selected order to see if the order has been deleted or not or I need to check other detail of the deleted orders to find out whether the order is cancelled previously or it exists as a pending order in the orders book.
My main doubt is about OrderCloseTime() function of the deleted orders. is it the same as the closed orders that if the order is deleted then the OrderCloseTime() of the order would be different from 0 ?
Thanking in advance for your kind guidance,