コード例 #1
0
 public override void Merge(ChartPoint point)
 {
     TraderChartPoint traderChartPoint = (TraderChartPoint)point;
     this.NLV = traderChartPoint.NLV;
     this.Cash = traderChartPoint.Cash;
     this.VaR = traderChartPoint.VaR;
 }
コード例 #2
0
 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);
 }
コード例 #3
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;
 }
コード例 #4
0
 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);
     }
 }
コード例 #5
0
 public override void Merge(ChartPoint point)
 {
     TraderAssetChartPoint traderAssetChartPoint = (TraderAssetChartPoint)point;
     this.Realized = traderAssetChartPoint.Realized;
 }
コード例 #6
0
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     return new TraderAssetChartPoint(this.Realized);
 }
コード例 #7
0
ファイル: ChartPoint.cs プロジェクト: jinpan/Traders_IAP
 public abstract void Merge(ChartPoint point);
コード例 #8
0
ファイル: ChartPoint.cs プロジェクト: jinpan/Traders_IAP
 public abstract ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY);
コード例 #9
0
 public override void Merge(ChartPoint point)
 {
     TraderTradingLimitChartPoint traderTradingLimitChartPoint = (TraderTradingLimitChartPoint)point;
     this.Gross = traderTradingLimitChartPoint.Gross;
     this.Net = traderTradingLimitChartPoint.Net;
 }
コード例 #10
0
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     return new TraderTradingLimitChartPoint(this.Gross, this.Net);
 }
コード例 #11
0
 public override void Merge(ChartPoint point)
 {
     SecurityVolumeChartPoint securityVolumeChartPoint = (SecurityVolumeChartPoint)point;
     this.Volume += securityVolumeChartPoint.Volume;
 }
コード例 #12
0
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     return new TraderSecurityChartPoint(this.Position, this.VWAP, this.NLV, this.Realized, this.Unrealized);
 }
コード例 #13
0
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     return new TraderChartPoint(this.NLV, this.Cash, this.VaR);
 }
コード例 #14
0
 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;
 }
コード例 #15
0
 public override void Merge(ChartPoint point)
 {
     SecurityBidAskChartPoint securityBidAskChartPoint = (SecurityBidAskChartPoint)point;
     this.Bid = securityBidAskChartPoint.Bid;
     this.Ask = securityBidAskChartPoint.Ask;
 }
コード例 #16
0
 public override ChartPoint Clone(ChartPoint.CloneType type = ChartPoint.CloneType.COPY)
 {
     return new SecurityBidAskChartPoint(this.Bid, this.Ask);
 }