Support Board
Date/Time: Fri, 31 Oct 2025 19:37:41 +0000
Post From: Getting the Symbol Code of the Chart (e.g. GC)
| [2021-01-10 14:18:22] | 
| ycomp - Posts: 325 | 
| 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  | 
