code: def onNewValue(self, dateTime, value):
      tr = self._calculateTrueRange(value)
      super(ATREventWindow, self).onNewValue(dateTime, tr)
      self.__prevClose = value.getClose(self.__useAdjustedValues)
  
      if value is not None and self.windowFull():
          if self.__value is None:
              self.__value = self.getValues().mean()
          else:
              self.__value = (
                  self.__value * (self.getWindowSize() - 1) + tr
              ) / float(self.getWindowSize())
  
file_path: pyalgotrade/pyalgotrade/technical/atr.py
imports: from pyalgotrade import technical
  from pyalgotrade.dataseries import bards
label_desc: Use image node_id 3 for calling the ATREventWindow obj's underlying member method code with example usage: obj.onNewValue(dateTime, value) without return types