예제 #1
0
 public void Write(WriterDataItem item, PbTick tick)
 {
     // 对于换交易日,应当将前一天的关闭
     if (item.TradingDay != tick.TradingDay)
     {
         item.Close();
         item.TradingDay = tick.TradingDay;
     }
     item.Tick = tick;
     item.Write();
 }
예제 #2
0
 public void Write(WriterDataItem item,PbTick tick)
 {
     // 对于换交易日,应当将前一天的关闭
     if (item.TradingDay != tick.TradingDay)
     {
         item.Close();
         item.TradingDay = tick.TradingDay;
     }
     item.Tick = tick;
     item.Write();
 }