public ATSStop SetStop(Position position, double level, StopType type, StopMode mode) { ATSStop atsStop = new ATSStop(position, level, type, mode); this.Strategy.nPMi9oJHY7(atsStop); return(atsStop); }
internal void nPMi9oJHY7(ATSStop obj0) { this.stops.Add((IStop)obj0); this.activeStops[obj0.Instrument].Add((StopBase)obj0); obj0.StatusChanged += new StopEventHandler(this.HEXihCjKlK); this.EmitStopAdded((StopBase)obj0); }
public ATSStop SetStop(Position position, DateTime dateTime) { ATSStop atsStop = new ATSStop(position, dateTime); this.Strategy.nPMi9oJHY7(atsStop); return(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); }
public ATSStop SetStop(Position position, DateTime dateTime) { ATSStop atsStop = new ATSStop(position, dateTime); this.Strategy.nPMi9oJHY7(atsStop); return atsStop; }
public virtual void OnStopExecuted(ATSStop stop) { }
public virtual void OnStopCanceled(ATSStop stop) { }
public virtual void OnStopStatusChanged(ATSStop stop) { }
internal Stop(Position position, double level, StopType type, StopMode mode) { this.position = position; FreeQuant.Trading.StopType stopType = EnumConverter.Convert(type); FreeQuant.Trading.StopMode stopMode = EnumConverter.Convert(mode); this.stop = new ATSStop(position.position, level, stopType, stopMode); ((StopBase)this.stop).TrailOnHighLow = true; ((StopBase)this.stop).TraceOnBarOpen = true; ((StopBase)this.stop).TraceOnBar = true; ((StopBase)this.stop).TraceOnQuote = true; ((StopBase)this.stop).TraceOnTrade = true; }
internal void mRciKlvZay(ATSStop obj0) { this.klBiFcxZsD.OnStopExecuted(obj0); this.csNiLdTRqH[obj0.Instrument].OnStopExecuted(obj0); }
internal void W2mi1ZwI9y(ATSStop obj0) { this.klBiFcxZsD.OnStopStatusChanged(obj0); this.csNiLdTRqH[obj0.Instrument].OnStopStatusChanged(obj0); }
public ATSStop SetStop(Position position, double level, StopType type, StopMode mode) { ATSStop atsStop = new ATSStop(position, level, type, mode); this.Strategy.nPMi9oJHY7(atsStop); return atsStop; }
internal void ANJiCtH3lb(ATSStop obj0) { this.klBiFcxZsD.OnStopCanceled(obj0); this.csNiLdTRqH[obj0.Instrument].OnStopCanceled(obj0); }
public StopView(ATSStop stop, Pad pad) { this.J5OcWhbyeL = Color.Yellow; this.jxFcFido6J = Color.MediumSeaGreen; this.nFpcIDd3Ej = Color.Gray; this.nkbcpi5r41 = stop; this.pad = pad; this.ToolTipEnabled = true; this.ToolTipFormat = stop.Position.Instrument.PriceDisplay; int index1 = pad.Series.GetIndex(stop.CreationTime, EIndexOption.Prev); if (index1 == -1) return; this.chartFirstDate = pad.Series.GetDateTime(index1); if (stop.Status != StopStatus.Active) { int index2 = pad.Series.GetIndex(stop.CompletionTime, EIndexOption.Prev); this.chartLastDate = pad.Series.GetDateTime(index2); } else this.chartLastDate = DateTime.MaxValue; }
public void SetStopAdded(ATSStop stop) { this.stops.Add(stop); List<ATSStop> list = (List<ATSStop>) null; if (!this.activeStops.TryGetValue(((StopBase) stop).Instrument, out list)) { list = new List<ATSStop>(); this.activeStops[((StopBase) stop).Instrument] = list; } list.Add(stop); // ISSUE: method pointer stop.StatusChanged += new StopEventHandler(this.stop_StatusChanged); if (this.StopAdded == null) return; this.StopAdded.Invoke(new StopEventArgs((IStop) stop)); }
public void DrawStop(ATSStop stop, int padNumber) { lock (this.dataLock) { if (!this.volumePadShown && padNumber > 1) --padNumber; StopView view = new StopView(stop, this.pads[padNumber]); this.pads[padNumber].AddPrimitive(view); view.ExecutedColor = this.executedStopColor; view.ActiveColor = this.activeStopColor; view.CanceledColor = this.canceledStopColor; view.SetInterval(this.leftDateTime, this.rightDateTime); } }
internal Stop(Position position, DateTime dateTime) { this.position = position; this.stop = new ATSStop(position.position, dateTime); ((StopBase)this.stop).TrailOnHighLow = true; ((StopBase)this.stop).TraceOnBarOpen = true; ((StopBase)this.stop).TraceOnBar = true; ((StopBase)this.stop).TraceOnQuote = true; ((StopBase)this.stop).TraceOnTrade = true; }