Download MetaTrader 5

Is there any way to find ( programatically ) that a given symbol is currency pair / commodity or a share ?

To add comments, please log in or register
KoT 009
44108
KoT 009 2013.09.17 07:37 
Ii want to make a for loop, which searches all symbols in marketwatch and return only commodity / FOREX Pairs or Shares .
Alain Verleyen
Moderator
31138
Alain Verleyen 2013.09.17 08:13  
chandra100:
Ii want to make a for loop, which searches all symbols in marketwatch and return only commodity / FOREX Pairs or Shares .
  SymbolInfoInteger(symbol, SYMBOL_TRADE_CALC_MODE);

See documentation.

Maxim Khrolenko
7249
Maxim Khrolenko 2013.09.17 12:13  
chandra100:
Ii want to make a for loop, which searches all symbols in marketwatch and return only commodity / FOREX Pairs or Shares .
In the article MQL5 Cookbook: Multi-Currency Expert Advisor - Simple, Neat and Quick Approach read about custom GetSymbol() function.
To add comments, please log in or register