Original
// Unsubscribe to any old bars requests
if (barsRequest != null)
barsRequest = new BarsRequest(Cbi.Instrument.GetInstrument("AAPL"),
DateTime.Now.AddDays(-daysBack), DateTime.Now);
// Unsubscribe to any old bars requests
if (barsRequest != null)
barsRequest.Update -= OnBarUpdate;
barsRequest = new BarsRequest(Cbi.Instrument.GetInstrument("AAPL"),
DateTime.Now.AddDays(-daysBack), DateTime.Now);

Comment