class_docstr: Heikin Ashi candlesticks in the forms of lines
  
  Formula:
      ha_open = (ha_open(-1) + ha_close(-1)) / 2
      ha_high = max(hi, ha_open, ha_close)
      ha_low = min(lo, ha_open, ha_close)
      ha_close = (open + high + low + close) / 4
  
  See also:
      https://en.wikipedia.org/wiki/Candlestick_chart#Heikin_Ashi_candlesticks
      http://stockcharts.com/school/doku.php?id=chart_school:chart_analysis:heikin_ashi
class_docstr_tok: ["Heikin","Ashi","candlesticks","in","the","forms","of","lines","Formula",":","ha_open","=","(","ha_open","(","-1",")","+","ha_close","(","-1",")",")","\/","2","ha_high","=","max","(","hi",",","ha_open",",","ha_close",")","ha_low","=","min","(","lo",",","ha_open",",","ha_close",")","ha_close","=","(","open","+","high","+","low","+","close",")","\/","4","See","also",":","https",":","\/\/en.wikipedia.org\/wiki\/Candlestick_chart","#","Heikin_Ashi_candlesticks","http",":","\/\/stockcharts.com\/school\/doku.php","?","id=chart_school",":","chart_analysis",":","heikin_ashi"]
code: def __init__(self):
      o = self.data.open
      h = self.data.high
      l = self.data.low
      c = self.data.close
  
      self.l.ha_close = ha_close = (o + h + l + c) / 4.0
      self.l.ha_open = ha_open = (
          self.l.ha_open(-1) + ha_close(-1)
      ) / 2.0
      self.l.ha_high = bt.Max(h, ha_open, ha_close)
      self.l.ha_low = bt.Min(l, ha_open, ha_close)
  
      super(HeikinAshi, self).__init__()
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import backtrader
  from backtrader.utils.py3 import range
label_desc: Use image node_id 1 to create a new HeikinAshi object from inherited base classes: bt with example: obj = HeikinAshi()