跳至内容

Symbol

符号

返回当前金融工具的名称的文本字符串。

string  Symbol();

参数

无。

返回值

包含当前金融工具的名称的文本字符串。

示例:

int total=OrdersTotal();
   for(int pos=0;pos<total;pos++)
     {
      // check selection result because the order may be closed or deleted at this time!
      if(OrderSelect(pos, SELECT_BY_POS)==false) continue;
      if(OrderType()>OP_SELL || OrderSymbol()!=Symbol()) continue;
      // performs some processing...
     }
最后更新于