Example #1
0
 public BarData(BarDataDisk bar)
 {
     Symbol         = bar.Symbol;
     BaseType       = bar.BaseType;
     TradeDate      = bar.TradeDate;
     TradeDateTicks = TradeDate.Ticks;
     OpenPrice      = bar.OpenPrice;
     HighPrice      = bar.HighPrice;
     LowPrice       = bar.LowPrice;
     ClosePrice     = bar.ClosePrice;
     VolumeF        = bar.VolumeF;
     VolumeS        = bar.VolumeS;
     VolumeT        = bar.VolumeT;
     AdjustD        = bar.AdjustD;
     AdjustS        = bar.AdjustS;
 }
Example #2
0
 public bool Equals(BarDataDisk other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return
         (Symbol == other.Symbol &&
          BaseType == other.BaseType &&
          TradeDate == other.TradeDate &&
          TradeDateTicks == other.TradeDateTicks &&
          OpenPrice == other.OpenPrice &&
          HighPrice == other.HighPrice &&
          LowPrice == other.LowPrice &&
          ClosePrice == other.ClosePrice &&
          VolumeF == other.VolumeF &&
          VolumeT == other.VolumeT &&
          VolumeS == other.VolumeS &&
          AdjustS == other.AdjustS &&
          AdjustD == other.AdjustD);
 }