Example #1
0
 private void provider_NewHistoricalBar(object sender, HistoricalBarEventArgs args)
 {
   DownloadViewItem downloadViewItem = (DownloadViewItem) null;
   if (!this.items.TryGetValue(((HistoricalDataEventArgs) args).RequestId, out downloadViewItem))
     return;
   if (args.Bar is Daily)
     downloadViewItem.Instrument.Add(args.Bar as Daily);
   else
     downloadViewItem.Instrument.Add(args.Bar);
   this.UpdateDownloadItem(downloadViewItem, (HistoricalDataEventArgs) args);
 }
Example #2
0
 private void OnNewHistoricalBar(object sender, HistoricalBarEventArgs e)
 {
     if (e.RequestId == this.request.RequestId)
         this.data.Add(e.Bar);
 }
Example #3
0
 private void viIgpbj1M([In] HistoricalDataRequest obj0, [In] Bar obj1, [In] int obj2)
 {
   HistoricalBarEventArgs args = new HistoricalBarEventArgs(obj1, obj0.RequestId, obj0.Instrument, (IHistoricalDataProvider) this, obj2);
   if (this.IoHu3RdKg == null)
     return;
   this.IoHu3RdKg((object) this, args);
 }