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))
{
SelectedAccountName = accountNames[0];
}
}
else if (State == State.DataLoaded)
{
// Find the selected share service
selectedTelegramService = Globals.ShareServices.FirstOrDefault(s => s.Name == SelectedServiceName);
// Find the selected account
selectedAccount = Account.All.FirstOrDefault(a => a.Name == SelectedAccountName);
if (selectedAccount != null)
{
selectedAccount.ExecutionUpdate += OnExecutionUpdate;
}
}
when trying to get the names of all the share services that are configured by the user I am getting an error Globals do not contain the definition shareservices.
Is there a way to get all the share services names in my indicator in ninjatrader8.