class_docstr: Defined by J. Welles Wilder, Jr. in 1978 in his book New Concepts in
  Technical Trading Systems.
  
  Formula:
    - max(high - low, abs(high - prev_close), abs(prev_close - low)
  
    which can be simplified to
  
    - max(high, prev_close) - min(low, prev_close)
  
  See:
    - http://en.wikipedia.org/wiki/Average_true_range
  
  The idea is to take the previous close into account to calculate the range
  if it yields a larger range than the daily range (High - Low)
class_docstr_tok: ["Defined","by","J.","Welles","Wilder",",","Jr.","in","1978","in","his","book","New","Concepts","in","Technical","Trading","Systems",".","Formula",":","-","max","(","high","-","low",",","abs","(","high","-","prev_close",")",",","abs","(","prev_close","-","low",")","which","can","be","simplified","to","-","max","(","high",",","prev_close",")","-","min","(","low",",","prev_close",")","See",":","-","http",":","\/\/en.wikipedia.org\/wiki\/Average_true_range","The","idea","is","to","take","the","previous","close","into","account","to","calculate","the","range","if","it","yields","a","larger","range","than","the","daily","range","(","High","-","Low",")"]
code: def __init__(self):
      self.lines.tr = TrueHigh(self.data) - TrueLow(self.data)
      super(TrueRange, self).__init__()
  
file_path: backtrader/backtrader/indicators/atr.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from .None import Indicator, Max, Min, MovAv
label_desc: Use image node_id 1 to create a new TrueRange object from inherited base classes: Indicator with example: obj = TrueRange()