I am getting this error on backtest:

Trying to dynamically access a method that does not exist throws a TypeError exception. To prevent the exception, ensure each parameter type matches those required by the 'float'>) method. Please checkout the API documentation.
  at OnData
    self.high_window.Add(self, bar.High)
 in main.py: line 23