class_docstr: By Dr. George Lane in the 50s. It compares a closing price to the price
  range and tries to show convergence if the closing prices are close to the
  extremes
  
    - It will go up if closing prices are close to the highs
    - It will roughly go down if closing prices are close to the lows
  
  It shows divergence if the extremes keep on growing but closing prices
  do not in the same manner (distance to the extremes grow)
  
  Formula:
    - hh = highest(data.high, period)
    - ll = lowest(data.low, period)
    - knum = data.close - ll
    - kden = hh - ll
    - k = 100 * (knum / kden)
    - d = MovingAverage(k, period_dfast)
  
  See:
    - http://en.wikipedia.org/wiki/Stochastic_oscillator
class_docstr_tok: ["By","Dr.","George","Lane","in","the","50s",".","It","compares","a","closing","price","to","the","price","range","and","tries","to","show","convergence","if","the","closing","prices","are","close","to","the","extremes","-","It","will","go","up","if","closing","prices","are","close","to","the","highs","-","It","will","roughly","go","down","if","closing","prices","are","close","to","the","lows","It","shows","divergence","if","the","extremes","keep","on","growing","but","closing","prices","do","not","in","the","same","manner","(","distance","to","the","extremes","grow",")","Formula",":","-","hh","=","highest","(","data.high",",","period",")","-","ll","=","lowest","(","data.low",",","period",")","-","knum","=","data.close","-","ll","-","kden","=","hh","-","ll","-","k","=","100","*","(","knum","\/","kden",")","-","d","=","MovingAverage","(","k",",","period_dfast",")","See",":","-","http",":","\/\/en.wikipedia.org\/wiki\/Stochastic_oscillator"]
code: def __init__(self):
      super(StochasticFast, self).__init__()
      self.lines.percK = self.k
      self.lines.percD = self.d
  
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 1 to create a new StochasticFast object from inherited base classes: _StochasticBase with example: obj = StochasticFast()