Пример #1
0
        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);
        }
Пример #2
0
 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);
 }
Пример #3
0
        public ATSStop SetStop(Position position, DateTime dateTime)
        {
            ATSStop atsStop = new ATSStop(position, dateTime);

            this.Strategy.nPMi9oJHY7(atsStop);
            return(atsStop);
        }
Пример #4
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);
        }
Пример #5
0
		public ATSStop SetStop(Position position, DateTime dateTime)
		{
			ATSStop atsStop = new ATSStop(position, dateTime);
			this.Strategy.nPMi9oJHY7(atsStop);
			return atsStop;
		}
Пример #6
0
 public virtual void OnStopExecuted(ATSStop stop)
 {
 }
Пример #7
0
 public virtual void OnStopCanceled(ATSStop stop)
 {
 }
Пример #8
0
 public virtual void OnStopStatusChanged(ATSStop stop)
 {
 }
Пример #9
0
		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;
		}
Пример #10
0
		internal void mRciKlvZay(ATSStop obj0)
		{
			this.klBiFcxZsD.OnStopExecuted(obj0);
			this.csNiLdTRqH[obj0.Instrument].OnStopExecuted(obj0);
		}
Пример #11
0
		internal void W2mi1ZwI9y(ATSStop obj0)
		{
			this.klBiFcxZsD.OnStopStatusChanged(obj0);
			this.csNiLdTRqH[obj0.Instrument].OnStopStatusChanged(obj0);
		}
Пример #12
0
		public virtual void OnStopExecuted(ATSStop stop)
		{
		}
Пример #13
0
		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;
		}
Пример #14
0
		public virtual void OnStopCanceled(ATSStop stop)
		{
		}
Пример #15
0
		public virtual void OnStopStatusChanged(ATSStop stop)
		{
		}
Пример #16
0
 internal void mRciKlvZay(ATSStop obj0)
 {
     this.klBiFcxZsD.OnStopExecuted(obj0);
     this.csNiLdTRqH[obj0.Instrument].OnStopExecuted(obj0);
 }
Пример #17
0
 internal void ANJiCtH3lb(ATSStop obj0)
 {
     this.klBiFcxZsD.OnStopCanceled(obj0);
     this.csNiLdTRqH[obj0.Instrument].OnStopCanceled(obj0);
 }
Пример #18
0
 internal void W2mi1ZwI9y(ATSStop obj0)
 {
     this.klBiFcxZsD.OnStopStatusChanged(obj0);
     this.csNiLdTRqH[obj0.Instrument].OnStopStatusChanged(obj0);
 }
Пример #19
0
		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);
		}
Пример #20
0
    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;
    }
Пример #21
0
		internal void ANJiCtH3lb(ATSStop obj0)
		{
			this.klBiFcxZsD.OnStopCanceled(obj0);
			this.csNiLdTRqH[obj0.Instrument].OnStopCanceled(obj0);
		}
Пример #22
0
 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));
 }
Пример #23
0
		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);
			}
		}
Пример #24
0
		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;
		}