MQL4参考 交易函数 OrderOpenTime

OrderOpenTime

Returns open time of the currently selected order.

datetime  OrderOpenTime();

Returned value

Open time of the currently selected order.

Note

The order must be previously selected by the OrderSelect() function.

Example:

  if(OrderSelect(10, SELECT_BY_POS)==true)
    Print("open time for the order 10 ",OrderOpenTime());
  else
    Print("OrderSelect returned error of ",GetLastError());