MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Trading functions  OrderSymbol

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
string OrderSymbol( )
Returns the order symbol value for selected order.
Note: The order must be previously selected by the OrderSelect() function.
Sample:
  if(OrderSelect(12, SELECT_BY_POS)==true)
    Print("symbol of order #", OrderTicket(), " is ", OrderSymbol());
  else
    Print("OrderSelect failed error code is",GetLastError());