Hello,
I am currently writing two EAs that will only be using one order at a time. What MQL4 functions can I use to check if a particular order has closed by hitting its stoploss or takeprofit levels?
I have tried selecting an order by using
, but that just returns TRUE and selects the order even if it is already closed.
Basically, I need a way to find out if a particular order (identified by ticket) is currently open or not.
Thanks,
Ravi.
I am currently writing two EAs that will only be using one order at a time. What MQL4 functions can I use to check if a particular order has closed by hitting its stoploss or takeprofit levels?
I have tried selecting an order by using
Inserted Code
OrderSelect(ticket, SELECT_BY_TICKET, MODE_TRADES)
Basically, I need a way to find out if a particular order (identified by ticket) is currently open or not.
Thanks,
Ravi.