get all Symbols

 
hi all

i need to obtain all symbols in MetaTrade... How to code?

regards

charles
 
 
DooMGuarD:
hi all

i need to obtain all symbols in MetaTrade... How to code?

regards

charles


DooMGuarD :

What I did was:

Since file read only reads in specific folders you will need to use another language to copy the file forexall.set from terminal_directory\symbolsets to terminal_directory\experts\files folder or terminal_directory\tester\files if testing, then use this code:

int handle;
handle=FileOpen("forexall.set",FILE_CSV|FILE_READ|FILE_WRITE,"\x09");

string s = FileReadString( handle, 6); // this will give you the first currency

And keep doing it until the end of the file.

Hope this helps.

Hazem

 
thanks i try....
 
hummm

i try in NorthFinance and the file forexall.set have this lines

USDCHF
GBPUSD
USDJPY
EURUSD
AUDUSD
USDCAD
EURCHF
EURGBP
EURJPY
EURCAD
EURAUD
GBPCHF
GBPJPY
CHFJPY

but NF have a lot of symbols (Futures, Metal, Indexes, CFD) and not have this information in this file...

:(
Reason: