MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Trading functions  OrderExpiration

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
datetime OrderExpiration( )
Returns expiration date for the selected pending order.
Note: The order must be previously selected by the OrderSelect() function.
Sample:
  if(OrderSelect(10, SELECT_BY_TICKET)==true)
    Print("Order expiration for the order #10 is ",OrderExpiration());
  else
    Print("OrderSelect returned error of ",GetLastError());