Пример #1
0
 public TrainingSimulator(
     IMarketDataCache dataCache,
     ISimulationCache simulationCache)
 {
     _dataCache       = dataCache;
     _simulationCache = simulationCache;
 }
Пример #2
0
 public BacktestingSimulator(
     IMarketDataCache dataCache,
     ISimulationCache simulationCache)
 {
     _dataCache       = dataCache;
     _simulationCache = simulationCache;
 }
Пример #3
0
 public StrategyKellyStaking(
     IStrategy strategy,
     IMarketDataCache marketDataCache,
     ISimulationCache simulationCache)
 {
     _strategy        = strategy;
     _marketDataCache = marketDataCache;
     _simulationCache = simulationCache;
 }
Пример #4
0
 public SimulatorFactory(
     IMarketDataCache marketDataCache,
     ISimulationCache simulationCache)
 {
     _typeLookup = new Dictionary <Type, Func <ISimulator> >
     {
         { typeof(TrainingSimulator), () => new TrainingSimulator(marketDataCache, simulationCache) },
         { typeof(BacktestingSimulator), () => new BacktestingSimulator(marketDataCache, simulationCache) }
     };
 }
Пример #5
0
 public LinearSearch(
     IMarketDataCache dataCache,
     ISimulationCache simulationCache,
     IInvestorProvider investorProvider,
     StrategyFactory strategyFactory)
 {
     _dataCache        = dataCache;
     _simulationCache  = simulationCache;
     _investorProvider = investorProvider;
     _strategyFactory  = strategyFactory;
 }
Пример #6
0
 public OptimiserFactory(
     IMarketDataCache marketDataCache,
     ISimulationCache simulationCache,
     IInvestorProvider investorProvider,
     StrategyFactory strategyFactory)
 {
     _typeLookup = new Dictionary <Type, Func <ISearcher> >
     {
         { typeof(LinearSearch), () => new LinearSearch(marketDataCache, simulationCache, investorProvider, strategyFactory) },
     };
 }
Пример #7
0
 public StrategyFactory(
     IMarketDataCache marketDataCache,
     ISimulationCache simulationCache,
     IInvestorProvider investorProvider,
     RatingService ratingService)
 {
     _marketDataCache  = marketDataCache;
     _simulationCache  = simulationCache;
     _ratingService    = ratingService;
     _optimiserFactory = new OptimiserFactory(_marketDataCache, _simulationCache, investorProvider, this);
 }
Пример #8
0
 public WeightedStrategy(
     ISimulationCache simulationCache,
     IStakingService stakingService,
     ISearcher searcher,
     WeightedParameters parameters)
 {
     _simulationCache = simulationCache;
     _stakingService  = stakingService;
     _searcher        = searcher;
     _parameters      = parameters;
 }
Пример #9
0
 protected static StrategyFactory CreateStrategyFactory(
     IMarketDataCache marketDataCache,
     ISimulationCache simulationCache,
     IInvestorProvider investorProvider,
     RatingService ratingService)
 => new (marketDataCache, simulationCache, investorProvider, ratingService);