SymbolInfoDouble for symbol not in market watch

 

Hey folks,

I'm accessing many symbols based on EA settings. Those symbols might not be in the market watch of the user.

I use SymbolInfoTick, SymbolInfoInteger and SymbolInfoDouble accessing the symbols (checking the price, swap, volume, etc.)

They fail or return 0 in case a symbol is not in market watch. How can I get around this? Can I load the symbol nevertheless? Maybe add it to the market watch programmatically?

 

This weird auto link solved my problem lmao Market Info - SymbolSelect

Documentation on MQL5: Market Info / SymbolSelect
Documentation on MQL5: Market Info / SymbolSelect
  • www.mql5.com
Selects a symbol in the Market Watch window or removes a symbol from the window. Parameters name [in] Symbol name. select [in] Switch. If the value...