class_docstr: This sizer return percents of available cash
  
  Params:
    - ``percents`` (default: ``20``)
code: def _getsizing(self, comminfo, cash, data, isbuy):
      position = self.broker.getposition(data)
      if not position:
          size = cash / data.close[0] * (self.params.percents / 100)
      else:
          size = position.size
  
      if self.p.retint:
          size = int(size)
  
      return size
  
file_path: backtrader/backtrader/sizers/percents_sizer.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import backtrader
label_desc: Use image node_id 2 for calling the PercentSizer obj's underlying member method code with example usage: obj._getsizing(comminfo, cash, data, isbuy) and returns: size