Initialization of the following snippet caused an error since CCI defaults to TradeBar. What to do?


private CommodityChannelIndex _cci; : : public override void Initialize() { : : _cci = CCI(TSymbol,CCIPeriod,MovingAverageType.Simple, Resolution.Hour); : : var history1 = History<QuoteBar>(TSymbol, CCIPeriod, Resolution.Hour); foreach (var bar in history1) { _cci.Update(bar.EndTime, bar.Close); } : : }

        error: During the algorithm initialization, the following exception has occurred: 
        CommodityChannelIndex does not support Update(DateTime, decimal) method overload. Use Update(IBaseDataBar) instead.