for loop SymbolsTotal() compare with SymbolName()
qjol:
for loop SymbolsTotal() compare with SymbolName()
for loop SymbolsTotal() compare with SymbolName()
Yes, a good idea, thanks!
MqlTick tick; SymbolInfoTick(sym,tick); if(GetLastError()==4106) { Print(sym+" is not available"); }Attempt to retrieve something. If the last error is 4106, the symbol doesn't exist.
jollydragon:
What is the good way to detect if a symbol is existing?
E.g. How to detect if "EurUsd.Pro" is existing or not?
string symbol="EurUsd.Pro"; if(SymbolInfoInteger(symbol,SYMBOL_SELECT)) Print(symbol," found") ; else Print(symbol," not found");
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
What is the good way to detect if a symbol is existing?
E.g. How to detect if "EurUsd.Pro" is existing or not?