Beispiel #1
0
 public RobotFarm(UpdateTickersCacheForRobotsExDel updateTickersCacheForRobots)
 {
     packerPool = new CandlePackerPool();
     this.updateTickersCacheForRobots = updateTickersCacheForRobots;
     startRoutine.RunWorkerCompleted += StartRoutineCompleted;
     startRoutine.DoWork        += StartRoutineDoWork;
     processQuoteRoutine.DoWork += ProcessQuoteRoutineDoWork;
     try
     {
         robots = LoadRobots();
     }
     catch (Exception ex)
     {
         Logger.Error("Ошибка загрузки роботов", ex);
     }
 }
Beispiel #2
0
 public RobotFarm(UpdateTickersCacheForRobotsExDel updateTickersCacheForRobots)
 {
     packerPool = new CandlePackerPool();
     this.updateTickersCacheForRobots = updateTickersCacheForRobots;
     startRoutine.RunWorkerCompleted += StartRoutineCompleted;
     startRoutine.DoWork += StartRoutineDoWork;
     processQuoteRoutine.DoWork += ProcessQuoteRoutineDoWork;
     try
     {
         robots = LoadRobots();
     }
     catch (Exception ex)
     {
         Logger.Error("Ошибка загрузки роботов", ex);
     }
 }
Beispiel #3
0
 public RobotContextBacktest(UpdateTickersCacheForRobotsExDel updateTickersCacheForRobots, Func <List <Cortege2 <string, BarSettings> > > getUsedTickers)
 {
     this.updateTickersCacheForRobots = updateTickersCacheForRobots;
     this.getUsedTickers = getUsedTickers;
 }
 public RobotContextBacktest(UpdateTickersCacheForRobotsExDel updateTickersCacheForRobots)
 {
     this.updateTickersCacheForRobots = updateTickersCacheForRobots;
 }