Support Board
Date/Time: Wed, 19 Feb 2025 01:14:40 +0000
[User Discussion] - Getting the Symbol Code of the Chart (e.g. GC)
View Count: 609
[2021-01-10 14:18:22] |
ycomp - Posts: 321 |
SCString Instrument = sc.Symbol.GetSubString(sc.Symbol.IndexOf('-')-2); // convert e.g. GCG1-NYMEX to GC I use this hack to get the symbol code (e.g. GC) Is this necessary or is there a variable built in that contains it for the chart? I couldn't find one. also.. is sc.Symbol pretty much always going to have a '-' in it? I mean can I rely on the presence of the '-' ? is there a way to know if the symbol is futures, forex, etc? Date Time Of Last Edit: 2021-01-10 14:19:46
|
To post a message in this thread, you need to log in with your Sierra Chart account: