Example #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);
        }
Example #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);
		}
Example #3
0
File: Stop.cs Project: heber/FreeOQ
		private void stop_StatusChanged(StopEventArgs args)
		{
		}
Example #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);
   }
 }