error: "Specified symbol is not selected", How can I fix it?

 
error: "Specified symbol is not selected", How can I fix it?
 
Either select in the MarketWatch or use this function: https://www.mql5.com/en/docs/marketinformation/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...