下载MetaTrader 5

请教:如何获取一个交易商服务器上所有货币对的名称?

要添加评论,请登录注册
Greatshore
88
Greatshore  
How can I get the list of all the symbols on a broker's server?
Rashid Umarov
管理员
11993
Rashid Umarov  

Unfortunately, it's impossible but I would like to draw your attention at this script - 'SymbolList fromSet'

Greatshore
88
Greatshore  
Thanks for your repaly. I had solved it myself by such codes:
string CurrencyList[] = {"AUD", "CAD", "CHF", "CZK", "DKK", "EUR", "GBP", 
              "HKD", "JPY", "MXN", "NOK", "NZD", "PLN", "SEK", 
              "SGD", "TRY", "USD", "ZAR"};

............


for (i = 0; i < n; i++)
  for (j = 0; j < n; j++)
  {
    CurrencyPair = CurrencyList[i] + CurrencyList[j];
    if (MarketInfo(CurrencyPair, MODE_SPREAD) > 0)
    { ............  }
  }
要添加评论,请登录注册