コード例 #1
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);
		}
コード例 #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);
 }