Hi,  I am new to Quantconnect.  I am trying to build a strategy using the standard ADX indicator but I am not able to update the indicator and plot the indicator. I would appreciate it if someone can help me out on this.  Thanks! Here's the code and error messages:

import numpy as np


class StandardIndicatorsProject(QCAlgorithm):
    
    def Initialize(self):
        self.SetStartDate(2020, 10, 29)
        self.SetEndDate(2021, 10, 29)
        self.SetCash(10000)  # Set Strategy Cash
        
        self.stock = self.AddEquity('MSFT', Resolution.Daily).Symbol
        
        self.adx = AverageDirectionalIndex(self.stock, 14)
        

        # initialize the indicator with the daily history close price
        
        history = self.History(self.stock, 200, Resolution.Daily)
        
        for time, row in history.loc[self.stock].iterrows():
            self.adx.Update(time, row["close"])

        
    def OnData(self, data):
        
        
        # update the indicator value with the new input close price every day
        
        if data.Bars.ContainsKey(self.stock):
            self.adx.Update(data[self.stock].EndTime, data[self.stock].Close)

    
        if not self.adx.IsReady: return
      
        self.Plot("Close", "today", data[self.stock].Close)
        
        self.Plot("Indicator", "adx", self.adx.Current.Value)

 

Error Messages:

During the algorithm initialization, the following exception has occurred: NotSupportedException : AverageDirectionalIndex does not support the `Update(DateTime, decimal)` method. Use one of the following methods instead: Update(TradeBar), Update(QuoteBar)
  at QuantConnect.Indicators.IndicatorBase`1.Update(DateTime time, Decimal value) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Indicators/IndicatorBase.cs:line 235
 at Initialize
   self.adx.Update(time in main.py: line 21
NotSupportedException : AverageDirectionalIndex does not support the `Update(DateTime, decimal)` method. Use one of the following methods instead: Update(TradeBar), Update(QuoteBar)
  at QuantConnect.Indicators.IndicatorBase`1.Update(DateTime time, Decimal value) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Indicators/IndicatorBase.cs:line 236