MQL4参考 交易函数 OrderSymbol

OrderSymbol

Returns symbol name of the currently selected order.

string  OrderSymbol();

Returned value

The symbol name of the currently selected order.

Note

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

Example:

  if(OrderSelect(12, SELECT_BY_POS)==true)
    Print("symbol of order #"OrderTicket(), " is "OrderSymbol());
  else
    Print("OrderSelect failed error code is",GetLastError());