code: def __init__(self):
      highesthigh = Highest(self.data.high, period=self.p.period)
      lowestlow = Lowest(self.data.low, period=self.p.period)
      knum = self.data.close - lowestlow
      kden = highesthigh - lowestlow
      if self.p.safediv:
          self.k = 100.0 * DivByZero(knum, kden, zero=self.p.safezero)
      else:
          self.k = 100.0 * (knum / kden)
      self.d = self.p.movav(self.k, period=self.p.period_dfast)
  
      super(_StochasticBase, self).__init__()
  
file_path: backtrader/backtrader/indicators/stochastic.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from .None import Indicator, Max, MovAv, Highest, Lowest, DivByZero
label_desc: Use image node_id 3 to create a new _StochasticBase object from inherited base classes: Indicator with example: obj = _StochasticBase()