Check if Symbol Code Exists
Created at 26 Mar 2015, 19:30
Check if Symbol Code Exists
26 Mar 2015, 19:30
What is the best way to find out if a specific symbol is supported by looking up its code?
For example, this does NOT work:
if(MarketData.GetSymbol("XYZUSD") == true) { Print("Symbol Supported"); } else { Print("Symbol Not Supported"); }
Invalid
27 Mar 2015, 09:29
RE:
Check if it is null instead of true.
Or you can create an extension:
@Invalid