MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Trading functions  OrderPrint

 
void OrderPrint( )
Prints information about the selected order in the log in the following format:
ticket number; open time; trade operation; amount of lots; open price; Stop Loss; Take Profit; close time; close price; commission; swap; profit; comment; magic number; pending order expiration date.
Order must be selected by the OrderSelect() function.
Sample:
  if(OrderSelect(10, SELECT_BY_TICKET)==true)
    OrderPrint();
  else
    Print("OrderSelect failed error code is",GetLastError());