task: to get the number of running strategies for all accounts.
used:
else if (State == [B]State.Terminated[/B])
{
Account.Strategies.Select(s => s.Account.Name).ToList().ForEach(Print);
//attempt to print the names of all accounts of existing strategies.
// always prints the name of the[B] current account[/B].
var strategyCount = Account.Strategies.Where(s => !s.IsTerminal).Count();
// attempt to get the number of not completed strategies
// always prints the number of
// not completed strategies for the[B] current account[/B].
}
How to get the number of running strategies for all accounts when any strategy is disabled?

Comment