class_docstr: Line Break filter as described in http://stockcharts.com/school/doku.php?id=chart_school:chart_analysis:three_line_break.
  .
  This is a DataSeries of :class:`Line` instances.
  
  :param barDataSeries: The DataSeries instance being filtered.
  :type barDataSeries: :class:`pyalgotrade.dataseries.bards.BarDataSeries`.
  :param reversalLines: The number of lines back to check to calculate a reversal. Must be greater than 1.
  :type reversalLines: int.
  :param useAdjustedValues: True to use adjusted high/low/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.
      This value can't be smaller than reversalLines.
  :type maxLen: int.
class_docstr_tok: ["Line","Break","filter","as","described","in","http",":","\/\/stockcharts.com\/school\/doku.php","?","id=chart_school",":","chart_analysis",":","three_line_break",".",".","This","is","a","DataSeries","of",":","class",":","`","Line","`","instances",".",":","param","barDataSeries",":","The","DataSeries","instance","being","filtered",".",":","type","barDataSeries",":",":","class",":","`","pyalgotrade.dataseries.bards.BarDataSeries","`",".",":","param","reversalLines",":","The","number","of","lines","back","to","check","to","calculate","a","reversal",".","Must","be","greater","than","1.",":","type","reversalLines",":","int",".",":","param","useAdjustedValues",":","True","to","use","adjusted","high\/low\/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",".","This","value","ca","n't","be","smaller","than","reversalLines",".",":","type","maxLen",":","int","."]
code: def __onNewBar(self, dataSeries, dateTime, value):
      line = self.__getNextLine(value)
      if line is not None:
          self.appendWithDateTime(dateTime, line)
  
file_path: pyalgotrade/pyalgotrade/technical/linebreak.py
imports: from pyalgotrade import dataseries
  from pyalgotrade.dataseries import bards
label_desc: Use image node_id 2 for calling the LineBreak obj's underlying member method code with example usage: obj.__onNewBar(dataSeries, dateTime, value) without return types