Проблема при инициализации EmulationTrader
Приветствую!
Код
var security = new Security
{
Id = "RIU9@RTS",
Code = "RIU9",
Name = "RTS-9.09",
MinStepSize = 5,
MinStepPrice = 2,
Decimals = 0,
Exchange = Exchange.Test,
};
var portfolio = new Portfolio { Name = "test account" };
var eTrader = new EmulationTrader(
new[] { security },
new[] { portfolio })
{
StartTime = new DateTime(2011, 1, 1),
StopTime = new DateTime(2011, 2, 1)
};
Debug.WriteLine(eTrader.Portfolios.Count());
Debug.WriteLine(eTrader.Securities.Count());
Выводятся два нуля. Почему так?