When using code block with SymbolName() and SymbolSelect() functions, and subsequently calling for market data with the SymbolInfoDouble command, I get the error "No prices for symbol EURUSD."
When I don't call the for() loop, I'm able to retrieve market info via SymbolInfoDouble() and SymbolInfoInt() functions and the rest of the code works properly.
I have been careful to use "false" in SymbolName(i,false), and "true" in SymbolSelect(symname,true), to make sure I'm not calling from only selected symbols and that I'm not "removing" any symbols from market watch during my operations. I don't want to add or remove symbols from market watch— I just want to get a listing of ALL available symbols and put their names into a string array. Can someone show me what I'm doing wrong, if anything?
I believe a similar thread here (https://www.mql5.com/en/forum/1887) describes the same issue, but I don't think there has been a resolution yet. Is someone at MetaQuotes looking into this, or am I doing something wrong here?
- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
When using code block with SymbolName() and SymbolSelect() functions, and subsequently calling for market data with the SymbolInfoDouble command, I get the error "No prices for symbol EURUSD."
When I don't call the for() loop, I'm able to retrieve market info via SymbolInfoDouble() and SymbolInfoInt() functions and the rest of the code works properly.
I have been careful to use "false" in SymbolName(i,false), and "true" in SymbolSelect(symname,true), to make sure I'm not calling from only selected symbols and that I'm not "removing" any symbols from market watch during my operations. I don't want to add or remove symbols from market watch— I just want to get a listing of ALL available symbols and put their names into a string array. Can someone show me what I'm doing wrong, if anything?
I believe a similar thread here (https://www.mql5.com/en/forum/1887) describes the same issue, but I don't think there has been a resolution yet. Is someone at MetaQuotes looking into this, or am I doing something wrong here?