class_docstr: Average True Range filter as described in http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:average_true_range_atr
  
  :param barDataSeries: The BarDataSeries instance being filtered.
  :type barDataSeries: :class:`pyalgotrade.dataseries.bards.BarDataSeries`.
  :param period: The average period. Must be > 1.
  :type period: int.
  :param useAdjustedValues: True to use adjusted Low/High/Close values.
  :type useAdjustedValues: boolean.
  :param maxLen: The maximum number of values to hold.
      Once a bounded length is full, when new items are added, a corresponding number of items are discarded from the
      opposite end. If None then dataseries.DEFAULT_MAX_LEN is used.
  :type maxLen: int.
class_docstr_tok: ["Average","True","Range","filter","as","described","in","http",":","\/\/stockcharts.com\/school\/doku.php","?","id=chart_school",":","technical_indicators",":","average_true_range_atr",":","param","barDataSeries",":","The","BarDataSeries","instance","being","filtered",".",":","type","barDataSeries",":",":","class",":","`","pyalgotrade.dataseries.bards.BarDataSeries","`",".",":","param","period",":","The","average","period",".","Must","be",">","1.",":","type","period",":","int",".",":","param","useAdjustedValues",":","True","to","use","adjusted","Low\/High\/Close","values",".",":","type","useAdjustedValues",":","boolean",".",":","param","maxLen",":","The","maximum","number","of","values","to","hold",".","Once","a","bounded","length","is","full",",","when","new","items","are","added",",","a","corresponding","number","of","items","are","discarded","from","the","opposite","end",".","If","None","then","dataseries.DEFAULT_MAX_LEN","is","used",".",":","type","maxLen",":","int","."]
code: def __init__(
      self, barDataSeries, period, useAdjustedValues=False, maxLen=None
  ):
      if not isinstance(barDataSeries, bards.BarDataSeries):
          raise Exception(
              "barDataSeries must be a dataseries.bards.BarDataSeries instance"
          )
  
      super(ATR, self).__init__(
          barDataSeries,
          ATREventWindow(period, useAdjustedValues),
          maxLen,
      )
  
file_path: pyalgotrade/pyalgotrade/technical/atr.py
imports: from pyalgotrade import technical
  from pyalgotrade.dataseries import bards
label_desc: Use image node_id 1 to create a new ATR object from inherited base classes: technical with example: obj = ATR(barDataSeries, period, useAdjustedValues, maxLen)