code: def _calculateTrueRange(self, value):
      ret = None
      if self.__prevClose is None:
          ret = value.getHigh(self.__useAdjustedValues) - value.getLow(
              self.__useAdjustedValues
          )
      else:
          tr1 = value.getHigh(self.__useAdjustedValues) - value.getLow(
              self.__useAdjustedValues
          )
          tr2 = abs(
              value.getHigh(self.__useAdjustedValues) - self.__prevClose
          )
          tr3 = abs(
              value.getLow(self.__useAdjustedValues) - self.__prevClose
          )
          ret = max(max(tr1, tr2), tr3)
      return ret
  
file_path: pyalgotrade/pyalgotrade/technical/atr.py
imports: from pyalgotrade import technical
  from pyalgotrade.dataseries import bards
label_desc: Use image node_id 2 for calling the ATREventWindow obj's underlying member method code with example usage: obj._calculateTrueRange(value) and returns: ret