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); }
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); }
private void stop_StatusChanged(StopEventArgs args) { }
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); } }