Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

SymbolLister - MetaTrader 4 Library | MT4 EA Download - MetaTrader 4 Resources

author EAcpu | 5 reads | 0 comments |

Actually, there is nothing to add to the description. The function is simple, it creates a list of currency pair symbols by iterating through the combinations of currency abbreviation names contained in the Currencies array. The array contains most currencies, more can be added if necessary.

Write at the beginning of the text:

 #import "symbol_list.ex4" string symbols[]; integer symbol count; integer create_symbol_list()

Write initialization function

 CreateSymbolList();

Use the Symbols[] symbol array and the number of found symbols SymbolCount.

I removed this function from my EA and did not test it as a separate library as a last resort, all of which can be plugged into the code and works fine.


Attachment download

📎 SymbolLister.mq4 (1.83 KB)

Source: MQL5 #7111

Verification code Refresh