Пример #1
0
 public TradingModel(
     IStatisticsService statisticsService,
     IForexMarketService forexMarketService,
     IForexTradingAgentService forexTradingAgentService,
     IForexTradingService forexTradingService)
 {
     _statisticsService = statisticsService;
     _forexMarketService = forexMarketService;
     _forexTradingAgentService = forexTradingAgentService;
     _forexTradingService = forexTradingService;
     _months = new List<string>();
     for (var i = 1; i <= 12; i++)
     {
         _months.Add(string.Format("{0:00}", i));
     }
     StatisticsSequences = new Dictionary<MonthPeriodKey, List<StatisticsSequenceDto>>();
 }
Пример #2
0
 public TradingModel(
     IStatisticsService statisticsService,
     IForexMarketService forexMarketService,
     IForexTradingAgentService forexTradingAgentService,
     IForexTradingService forexTradingService)
 {
     _statisticsService        = statisticsService;
     _forexMarketService       = forexMarketService;
     _forexTradingAgentService = forexTradingAgentService;
     _forexTradingService      = forexTradingService;
     _months = new List <string>();
     for (var i = 1; i <= 12; i++)
     {
         _months.Add(string.Format("{0:00}", i));
     }
     StatisticsSequences = new Dictionary <MonthPeriodKey, List <StatisticsSequenceDto> >();
 }