How to distinguish between Pending and Live order?

 

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.

 

OrderSelect() the check OrderType()

Please read the Documentation.

 
Didn't know that pending order changes type over time. Thanks!