class_docstr: Formula:
    # Buying Pressure = Close - TrueLow
    BP = Close - Minimum(Low or Prior Close)
  
    # TrueRange = TrueHigh - TrueLow
    TR = Maximum(High or Prior Close)  -  Minimum(Low or Prior Close)
  
    Average7 = (7-period BP Sum) / (7-period TR Sum)
    Average14 = (14-period BP Sum) / (14-period TR Sum)
    Average28 = (28-period BP Sum) / (28-period TR Sum)
  
    UO = 100 x [(4 x Average7)+(2 x Average14)+Average28]/(4+2+1)
  
  See:
  
    - https://en.wikipedia.org/wiki/Ultimate_oscillator
    - http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:ultimate_oscillator
class_docstr_tok: ["Formula",":","#","Buying","Pressure","=","Close","-","TrueLow","BP","=","Close","-","Minimum","(","Low","or","Prior","Close",")","#","TrueRange","=","TrueHigh","-","TrueLow","TR","=","Maximum","(","High","or","Prior","Close",")","-","Minimum","(","Low","or","Prior","Close",")","Average7","=","(","7-period","BP","Sum",")","\/","(","7-period","TR","Sum",")","Average14","=","(","14-period","BP","Sum",")","\/","(","14-period","TR","Sum",")","Average28","=","(","28-period","BP","Sum",")","\/","(","28-period","TR","Sum",")","UO","=","100","x","[","(","4","x","Average7",")","+","(","2","x","Average14",")","+Average28","]","\/","(","4+2+1",")","See",":","-","https",":","\/\/en.wikipedia.org\/wiki\/Ultimate_oscillator","-","http",":","\/\/stockcharts.com\/school\/doku.php","?","id=chart_school",":","technical_indicators",":","ultimate_oscillator"]
code: def _plotinit(self):
      baseticks = [10.0, 50.0, 90.0]
      hlines = [self.p.upperband, self.p.lowerband]
  
      # Plot lines at 0 & 100 to make the scale complete + upper/lower/bands
      self.plotinfo.plotyhlines = hlines
      # Plot ticks at "baseticks" + the user specified upper/lower bands
      self.plotinfo.plotyticks = baseticks + hlines
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import backtrader
  from backtrader.indicators import SumN, TrueLow, TrueRange
label_desc: Use image node_id 1 for calling the UltimateOscillator obj's underlying member method code with example usage: obj._plotinit() without return types