MQL4 Reference
Trading functions
OrderComment
Returns comment for the selected order.
Note: The order must be previously selected by the OrderSelect() function.
Sample:
string comment;
if(OrderSelect(10,SELECT_BY_TICKET)==false)
{
Print("OrderSelect failed error code is",GetLastError());
return(0);
}
comment = OrderComment();
// ...
|
|
|