コード例 #1
0
 private StrategyBuilder(Robot bot, string label, Symbol symbol, List <ModuleBase> modules)
 {
     this.bot    = bot;
     this.symbol = symbol;
     _strategy   = new StrategyBase(bot, symbol, label);
     foreach (var module in modules)
     {
         _strategy.AddModule(module);
     }
 }
コード例 #2
0
 public StrategyBuilder AddModule(string name)
 {
     _strategy.AddModule(ActivateModule(name));
     return(this);
 }