示例#1
0
        private void HEXihCjKlK(StopEventArgs obj0)
        {
            ATSStop atsStop = obj0.Stop as ATSStop;

            if (atsStop.Status != StopStatus.Active)
            {
                this.activeStops[atsStop.Instrument].Remove((StopBase)atsStop);
            }
            this.W2mi1ZwI9y(atsStop);
            if (atsStop.Status == StopStatus.Executed)
            {
                this.mRciKlvZay(atsStop);
            }
            if (atsStop.Status == StopStatus.Canceled)
            {
                this.ANJiCtH3lb(atsStop);
            }
            this.BSDIytBhT((StopBase)atsStop);
        }
示例#2
0
		private void HEXihCjKlK(StopEventArgs obj0)
		{
			ATSStop atsStop = obj0.Stop as ATSStop;
			if (atsStop.Status != StopStatus.Active)
				this.activeStops[atsStop.Instrument].Remove((StopBase)atsStop);
			this.W2mi1ZwI9y(atsStop);
			if (atsStop.Status == StopStatus.Executed)
				this.mRciKlvZay(atsStop);
			if (atsStop.Status == StopStatus.Canceled)
				this.ANJiCtH3lb(atsStop);
			this.BSDIytBhT((StopBase)atsStop);
		}
示例#3
0
文件: Stop.cs 项目: heber/FreeOQ
		private void stop_StatusChanged(StopEventArgs args)
		{
		}
示例#4
0
 private void stop_StatusChanged(StopEventArgs args)
 {
   ATSStop atsStop = args.Stop as ATSStop;
   if (((StopBase) atsStop).Status != null)
   {
     this.activeStops[((StopBase) atsStop).Instrument].Remove(atsStop);
     // ISSUE: method pointer
             atsStop.StatusChanged -= new StopEventHandler(this.stop_StatusChanged);
   }
         if (((StopBase) atsStop).Status != FreeQuant.Trading.StopStatus.Executed)
     return;
   try
   {
     Strategy strategy = (Strategy) null;
     if (!this.strategies.TryGetValue(((StopBase) atsStop).Instrument, out strategy))
       return;
     strategy.OnStopExecuted(Map.FQ_OQ_Stop[(object) atsStop] as OpenQuant.API.Stop);
   }
   catch (Exception ex)
   {
     this.EmitError(ex);
   }
 }