Beispiel #1
0
 public override void Merge(ChartPoint point)
 {
     TraderChartPoint traderChartPoint = (TraderChartPoint)point;
     this.NLV = traderChartPoint.NLV;
     this.Cash = traderChartPoint.Cash;
     this.VaR = traderChartPoint.VaR;
 }
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     if (type == ChartPoint.CloneType.COPY)
     {
         return new SecurityVolumeChartPoint(this.Volume);
     }
     return new SecurityVolumeChartPoint(0.0);
 }
 public override void Merge(ChartPoint point)
 {
     TraderSecurityChartPoint traderSecurityChartPoint = (TraderSecurityChartPoint)point;
     this.Position = traderSecurityChartPoint.Position;
     this.VWAP = traderSecurityChartPoint.VWAP;
     this.NLV = traderSecurityChartPoint.NLV;
     this.Realized = traderSecurityChartPoint.Realized;
     this.Unrealized = traderSecurityChartPoint.Unrealized;
 }
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     switch (type)
     {
     case ChartPoint.CloneType.FORWARD:
         return new SecurityChartPoint(this.Close);
     case ChartPoint.CloneType.BACKWARD:
         return new SecurityChartPoint(this.Open);
     default:
         return new SecurityChartPoint(this.Open, this.High, this.Low, this.Close);
     }
 }
 public override void Merge(ChartPoint point)
 {
     TraderAssetChartPoint traderAssetChartPoint = (TraderAssetChartPoint)point;
     this.Realized = traderAssetChartPoint.Realized;
 }
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     return new TraderAssetChartPoint(this.Realized);
 }
Beispiel #7
0
 public abstract void Merge(ChartPoint point);
Beispiel #8
0
 public abstract ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY);
 public override void Merge(ChartPoint point)
 {
     TraderTradingLimitChartPoint traderTradingLimitChartPoint = (TraderTradingLimitChartPoint)point;
     this.Gross = traderTradingLimitChartPoint.Gross;
     this.Net = traderTradingLimitChartPoint.Net;
 }
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     return new TraderTradingLimitChartPoint(this.Gross, this.Net);
 }
 public override void Merge(ChartPoint point)
 {
     SecurityVolumeChartPoint securityVolumeChartPoint = (SecurityVolumeChartPoint)point;
     this.Volume += securityVolumeChartPoint.Volume;
 }
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     return new TraderSecurityChartPoint(this.Position, this.VWAP, this.NLV, this.Realized, this.Unrealized);
 }
Beispiel #13
0
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     return new TraderChartPoint(this.NLV, this.Cash, this.VaR);
 }
 public override void Merge(ChartPoint point)
 {
     SecurityChartPoint securityChartPoint = (SecurityChartPoint)point;
     if (securityChartPoint.High > this.High)
     {
         this.High = securityChartPoint.High;
     }
     if (securityChartPoint.Low < this.Low)
     {
         this.Low = securityChartPoint.Low;
     }
     this.Close = securityChartPoint.Close;
 }
 public override void Merge(ChartPoint point)
 {
     SecurityBidAskChartPoint securityBidAskChartPoint = (SecurityBidAskChartPoint)point;
     this.Bid = securityBidAskChartPoint.Bid;
     this.Ask = securityBidAskChartPoint.Ask;
 }
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     return new SecurityBidAskChartPoint(this.Bid, this.Ask);
 }