public OHLCV(BarData barData, int i)
 {
     open   = barData.GetOpen(i);
     close  = barData.GetClose(i);
     low    = barData.GetLow(i);
     high   = barData.GetHigh(i);
     volume = double.IsNaN(barData.GetVolume(i))? 0: barData.GetVolume(i);
     time   = barData.GetTimeUtc(i);
 }
 public override void Update(TickStatus args)
 {
     if (!loadData)
     {
         HistoricalDataManager.Get(HistoryDataSeries.HistoricalRequest, new Interval(barData.GetTimeUtc(), DateTime.UtcNow));
         loadData = true;
     }
 }