Beispiel #1
0
        public StrategyI(StrategySettings settings)
        {
            this.Settings = settings ?? new StrategySettings();

            lock (Locker)
            {
                this.StatisticsService    = ApplicationHelper.CurrentCompositionContainer.GetExportedValue <IStatisticsService>();
                this.DataProcessorService = ApplicationHelper.CurrentCompositionContainer.GetExportedValue <IDataProcessorService>();
            }
        }
Beispiel #2
0
        public StrategyI(StrategySettings settings, NeuralStockSettings appSettings)
        {
            Settings = settings ?? new StrategySettings();

            lock (Locker)
            {
                StatisticsService    = ApplicationHelper.CurrentCompositionContainer.GetExportedValue <IStatisticsService>();
                DataProcessorService = ApplicationHelper.CurrentCompositionContainer.GetExportedValue <IDataProcessorService>();
                DownloaderService    = ApplicationHelper.CurrentCompositionContainer.GetExportedValue <IDownloaderService>();
            }
        }