Download MetaTrader 5

list of all symbols including CFD's

To add comments, please log in or register
zeno
275
zeno  

Hello,

I have found the script 'listallsymbols.mq4' that is very useful to get the extensive symbol list for currency pairs. This does not include CFD symbols or any symbol that does not have 6 characters.

I am wondering if such a script exists that covers all symbols, including CFD's with variable name length. I am only looking for the symbol names.

Thank you. 

Carl Schreiber
7364
Carl Schreiber  
zeno1:

Hello,

I have found the script 'listallsymbols.mq4' that is very useful to get the extensive symbol list for currency pairs. This does not include CFD symbols or any symbol that does not have 6 characters.

I am wondering if such a script exists that covers all symbols, including CFD's with variable name length. I am only looking for the symbol names.

Thank you. 


Since b+600 we have: SymbolName(), SymbolSelect(), and SymbolsTotal(). (Look in the MQL4-Reference)

With this you can get all you need and is provided by the broker's server.

honest_knave
Moderator
2318
honest_knave  
gooly:

Since b+600 we have: SymbolName(), SymbolSelect(), and SymbolsTotal(). (Look in the MQL4-Reference)

With this you can get all you need and is provided by the broker's server.

I didn't know about SymbolSelect() - thanks gooly!
zeno
275
zeno  
gooly:

Since b+600 we have: SymbolName(), SymbolSelect(), and SymbolsTotal(). (Look in the MQL4-Reference)

With this you can get all you need and is provided by the broker's server.

The script 'listallsymbols.mq4' uses both SymbolName() and SymbolsTotal() - I attach it enclosed. Yet I do not get all symbols selected with the script, even if they are available in Marketwatch (e.g. gold, CFD's).

How come this discrepancy? 

Thank you. 

Files:
whroeder1
16105
whroeder1  
honest_knave: I didn't know about SymbolSelect() - thanks gooly!
List of MQL4 Functions - MQL4 Documentation
To add comments, please log in or register