MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Trading functions  OrderClosePrice

 
double OrderClosePrice( )
Returns close price for the currently selected order.
Note: The order must be previously selected by the OrderSelect() function.
Sample:
  if(OrderSelect(ticket,SELECT_BY_POS)==true)
    Print("Close price for the order ",ticket," = ",OrderClosePrice());
  else
    Print("OrderSelect failed error code is",GetLastError());