get all Symbols

To add comments, please log in or register
Charles Adriano
431
Charles Adriano  
hi all

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

regards

charles
Ray
2646
Ray  
Hazem
35
Hazem  
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

Charles Adriano
431
Charles Adriano  
thanks i try....
Charles Adriano
431
Charles Adriano  
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...

:(
To add comments, please log in or register