public Backtester(ScriptExecutor executor) {
			this.backtestQuoteBarConsumer = new BacktestQuoteBarConsumer(this);
			this.Executor = executor;
			if (this.Executor.Strategy == null) return;
			if (this.Executor.Strategy.Script == null) return;
			this.Initialize(this.Executor.Strategy.Script.BacktestMode);
		}
示例#2
0
 public Backtester(ScriptExecutor executor)
 {
     this.backtestQuoteBarConsumer = new BacktestQuoteBarConsumer(this);
     this.Executor = executor;
     if (this.Executor.Strategy == null)
     {
         return;
     }
     if (this.Executor.Strategy.Script == null)
     {
         return;
     }
     this.Initialize(this.Executor.Strategy.Script.BacktestMode);
 }