Beispiel #1
0
 public RatingService(
     IMarketDataCache marketDataCache,
     SimulatorFactory simulatorFactory,
     IInvestorProvider investorProvider)
 {
     _marketDataCache  = marketDataCache;
     _simulatorFactory = simulatorFactory;
     _investorProvider = investorProvider;
 }
Beispiel #2
0
 public LinearSearch(
     IMarketDataCache dataCache,
     ISimulationCache simulationCache,
     IInvestorProvider investorProvider,
     StrategyFactory strategyFactory)
 {
     _dataCache        = dataCache;
     _simulationCache  = simulationCache;
     _investorProvider = investorProvider;
     _strategyFactory  = strategyFactory;
 }
 public OptimiserFactory(
     IMarketDataCache marketDataCache,
     ISimulationCache simulationCache,
     IInvestorProvider investorProvider,
     StrategyFactory strategyFactory)
 {
     _typeLookup = new Dictionary <Type, Func <ISearcher> >
     {
         { typeof(LinearSearch), () => new LinearSearch(marketDataCache, simulationCache, investorProvider, strategyFactory) },
     };
 }
 public StrategyFactory(
     IMarketDataCache marketDataCache,
     ISimulationCache simulationCache,
     IInvestorProvider investorProvider,
     RatingService ratingService)
 {
     _marketDataCache  = marketDataCache;
     _simulationCache  = simulationCache;
     _ratingService    = ratingService;
     _optimiserFactory = new OptimiserFactory(_marketDataCache, _simulationCache, investorProvider, this);
 }
 public AnalysisService(
     IMarketDataCache marketDataCache,
     IResultsProvider resultsProvider,
     StrategyProvider strategyProvider,
     IInvestorProvider investorProvider,
     SimulatorFactory simulatorFactory,
     MarketDataProvider marketDataProvider,
     ICommunicationService communicationService)
 {
     _simulatorFactory     = simulatorFactory;
     _marketDataCache      = marketDataCache;
     _resultsProvider      = resultsProvider;
     _strategyProvider     = strategyProvider;
     _investorProvider     = investorProvider;
     _marketDataProvider   = marketDataProvider;
     _communicationService = communicationService;
 }
Beispiel #6
0
 protected static StrategyFactory CreateStrategyFactory(
     IMarketDataCache marketDataCache,
     ISimulationCache simulationCache,
     IInvestorProvider investorProvider,
     RatingService ratingService)
 => new (marketDataCache, simulationCache, investorProvider, ratingService);