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

 
Ii want to make a for loop, which searches all symbols in marketwatch and return only commodity / FOREX Pairs or Shares .
 
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.

 
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.
Reason: