예제 #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
파일: ATSStrategy.cs 프로젝트: heber/FreeOQ
		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);
   }
 }