code: def __init__(self):
      h = self.data.high  # current high
      l = self.data.low  # current high
      c = self.data.close  # current high
  
      self.lines.p = p = (h + l + c) / 3.0
  
      p2 = p * 2.0
      self.lines.s1 = p2 - h  # (p x 2) - high
      self.lines.r1 = p2 - l  # (p x 2) - low
  
      hilo = h - l
      self.lines.s2 = p - hilo  # p - (high - low)
      self.lines.r2 = p + hilo
  
file_path: backtrader/samples/pivot-point/pivotpoint.py
imports: from __future__ import absolute_import, division, print_function
  import backtrader
label_desc: Use image node_id 1 to create a new PivotPoint object from inherited base classes: bt with example: obj = PivotPoint()