Beispiel #1
0
 protected void DealFinishedEvent(StrategyFinishedArguments finishedArguments)
 {
     if (OnFinished != null)
     {
         OnFinished(this, finishedArguments);
     }
 }
        private void Executor_OnStrategyFinished(object sender, StrategyFinishedArguments arguments)
        {
            IStrategyExecutorInfo executorInfo = arguments.ExecutorInfo;

            Console.WriteLine("Finished:" + executorInfo.CurrentKLineData.Code + "," + executorInfo.CurrentKLineData);
            finishedCount++;
        }
 private void StrategyExecutor_OnFinished(object sender, StrategyFinishedArguments arguments)
 {
     if (OnFinished != null)
     {
         OnFinished(this, arguments);
     }
 }
Beispiel #4
0
 private void Executor_OnFinished(object sender, StrategyFinishedArguments arguments)
 {
     this.RemoveExecutingExecutor((IStrategyExecutor_Single)sender);
     if (OnStrategyFinished != null)
     {
         OnStrategyFinished(sender, arguments);
     }
 }
Beispiel #5
0
 private void Executor_OnFinished(object sender, StrategyFinishedArguments arguments)
 {
     if (OnStrategyFinished != null)
     {
         OnStrategyFinished(sender, arguments);
     }
     if (sender != null && sender is IStrategyExecutor_Single)
     {
         IStrategyExecutor_Single executor = ((IStrategyExecutor_Single)sender);
         executor.OnStart       -= Executor_OnStart;
         executor.OnDayFinished -= Executor_OnDayFinished;
         executor.OnFinished    -= Executor_OnFinished;
         executingExecutors.Remove(executor);
     }
 }
Beispiel #6
0
 private void Executor_OnFinished(object sender, StrategyFinishedArguments arguments)
 {
     Console.WriteLine("Strategy Finished");
 }
Beispiel #7
0
 private void Runner_OnFinished(object sender, StrategyFinishedArguments arguments)
 {
     Console.WriteLine("ExecuteFinished:");
     isFinished = true;
 }
Beispiel #8
0
 private void Pool_OnFinished(object sender, StrategyFinishedArguments arguments)
 {
     poolDetector.EndExecutor(arguments.ExecutorInfo);
 }
Beispiel #9
0
 private void Executor_OnFinished(object sender, StrategyFinishedArguments arguments)
 {
     AssertUtils.AssertEqual_List("executorhistory", GetType(), ((MockStrategy)arguments.Strategy).PrintData);
 }