Download MetaTrader 5
To add comments, please log in or register
Unable to find the answer to your question? Use the search!
zeno
274
zeno 2015.10.15 01:11 

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
5959
Carl Schreiber 2015.10.15 06:32  
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
969
honest_knave 2015.10.15 09:37  
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
274
zeno 2015.10.15 13:36  
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
13641
whroeder1 2015.10.15 16:07  
honest_knave: I didn't know about SymbolSelect() - thanks gooly!
List of MQL4 Functions - MQL4 Documentation
/
To add comments, please log in or register