Trouble Getting Share Services in NinjaTrader
I’m encountering an issue in NinjaTrader where I’m trying to get the names of all configured share services, particularly for Telegram, but I’m getting an error saying that Globals does not contain the definition ShareServices.
having trouble getting the share services in ninjatrader
else if (State == State.Configure) { // Get the names of all Telegram share services telegramServiceNames = Globals.ShareServices .Where(s => s.Name.ToLower().Contains(“telegram”)) .Select(s => s.Name) .ToList(); if (telegramServiceNames.Count > 0 && string.IsNullOrEmpty(SelectedServiceName)) { SelectedServiceName = telegramServiceNames[0]; } // Get the names of all accounts accountNames = Account.All.Select(a => a.Name).ToList(); if (accountNames.Count > 0 && string.IsNullOrEmpty(SelectedAccountName)) { […]