Hi QC Support:

I'm trying to use the AD indicator and am getting the error below.

# initialize
self.ADW = RollingWindow[float](self.lookback)
self.AD_indicator = self.AD(self.ticker, Resolution.Daily)

# update
self.AD_indicator.Update(data.Bars[self.ticker].EndTime, data.Bars[self.ticker].Close)
self.ADW.Add(self.AD_indicator.Current.Value)

Getting this error:
AccumulationDistribution does not support the `Update(DateTime, decimal)` method.
Use one of the following methods instead: Update(TradeBar), Update(QuoteBar)

Please advise what should be the code.

Thanks / Sheikh

 

Author