Beispiel #1
0
 public void AddStop(Stop stop)
 {
     this.stops.Add(stop);
     if (this.stopsByInstrument[stop.instrument.Id] == null)
     {
         this.stopsByInstrument[stop.instrument.Id] = new List<Stop>();
     }
     this.stopsByInstrument[stop.instrument.Id].Add(stop);
 }
Beispiel #2
0
 protected internal virtual void OnStopStatusChanged(Stop stop)
 {
 }
Beispiel #3
0
 protected internal virtual void OnStopStatusChanged_(Stop stop)
 {
     if (this.raiseEvents)
     {
         switch (stop.status)
         {
         case StopStatus.Executed:
             this.OnStopExecuted(stop);
             break;
         case StopStatus.Canceled:
             this.OnStopCancelled(stop);
             break;
         }
         this.OnStopStatusChanged(stop);
         this.stops.Remove(stop);
         this.stopsByInstrument[stop.instrument.Id].Remove(stop);
     }
 }
Beispiel #4
0
 protected internal virtual void OnStopCancelled(Stop stop)
 {
 }
Beispiel #5
0
 protected internal virtual void OnStopExecuted(Stop stop)
 {
 }
Beispiel #6
0
 public virtual void OnStopExecuted(Stop stop)
 {
 }
Beispiel #7
0
 public Stop SetStop(double level, StopType type = StopType.Fixed, StopMode mode = StopMode.Absolute)
 {
     Stop stop = new Stop(this.strategy, this.Position, level, type, mode);
     this.strategy.AddStop(stop);
     return stop;
 }
Beispiel #8
0
 public virtual void OnStopCancelled(Stop stop)
 {
 }
Beispiel #9
0
		protected internal override void OnStopCancelled(Stop stop)
		{
			this.positionComponent.OnStopCancelled(stop);
		}
Beispiel #10
0
 public virtual void OnStopCancelled(Stop stop)
 {
 }
Beispiel #11
0
 public virtual void OnStopExecuted(Stop stop)
 {
 }
Beispiel #12
0
 protected internal override void OnStopCancelled(Stop stop)
 {
     this.positionComponent.OnStopCancelled(stop);
 }