Is there an equivalent to the pair's 'string name' as integer ?

 

i.e. if I want to search all pairs one by one with a 'For i= .. ' command

Is there a global pair code?

For instance: like, let's say EURUSD is 001..


James
 
When u say 'search all pairs' - what do u mean? Search for what?
 
Thanks for the link 'jolqwer'

Answer for 'gordon':
I want to write an EA called 'trade_sniffer' that will constantly scan all pairs and commodities and will alert for potential trades.


James
 

for Information purposes only, it takes a lot of computer resources

 
JJF:
[...] I want to write an EA called 'trade_sniffer' that will constantly scan all pairs and commodities and will alert for potential trades.

I see. Well, the method qjol mentioned works but uses undocumented features of MT4, so personally I would only trust it to a certain degree. If the EA will only be used with known brokers, then personally I would just hard-code the list of symbols I am interested in for each broker...

Reason: