List currency pairs function

 

Hi

Is there a function or script available for listing all the brokers available currency pairs?

 
Thanks so much
 
bonechair:

Is there a function or script available for listing all the brokers available currency pairs?

It depends whether you need code which works on v509. If you only want to run your code on v600+, then you can use the new symbol functions. For example:

void OnStart()
{
   for (int i = 0; i < SymbolsTotal(false); i++) {
      Print(SymbolName(i, false));
   }
}

Until the revised MQL4 documentation is ready, you can find more information about these functions in the MQL5 reference at https://www.mql5.com/en/docs/marketinformation

 
Thanks thats it
Reason: