How to distinguish between Pending and Live order? New comment [Deleted] 2012.09.04 11:37 MQL4. I have order ticket. How can I check if order is pending or not. Currently I'm checking if OrderProfit() != 0, but this excludes cases when order is live but price dropped/grossed and current profit is 0.0. Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes [ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. Zero stop level? Ickyrus 2012.09.04 11:42 #1 https://docs.mql4.com/trading/OrderType Simon Gniadkowski 2012.09.04 11:43 #2 OrderSelect() the check OrderType() Please read the Documentation. [Deleted] 2012.09.10 14:16 #3 Didn't know that pending order changes type over time. Thanks! New comment
MQL4. I have order ticket. How can I check if order is pending or not.
Currently I'm checking if OrderProfit() != 0, but this excludes cases when order is live but price dropped/grossed and current profit is 0.0.