Exemplo n.º 1
0
 /// <summary>
 /// 监视结束的清理:撤掉因爆仓引起的挂单
 /// </summary>
 /// <param name="t"></param>
 void Clear(Trader t)
 {
     lock (t.Name)
     {
         //log.Info(string.Format("清理监视{0}-线程{1}", t.Name, Thread.CurrentThread.ManagedThreadId));
         if (t.IsClearing())
         {
             return;
         }
         t.ClearAllSelling();
         t.SetClearing(true);
         t.SetMonitoring(false);
         rightBlaster.Clear(t);
         dutyBlaster.Clear(t);
         t.SetClearing(false);
     }
 }