code: def __init__(self):
      self.sfast = bt.indicators.SMA(period=self.p.pfast)
      self.sslow = bt.indicators.SMA(period=self.p.pslow)
      self.cover = bt.indicators.CrossOver(self.sfast, self.sslow)
      if self.p.short:
          self.signal_add(bt.SIGNAL_LONGSHORT, self.cover)
      else:
          self.signal_add(bt.SIGNAL_LONG, self.cover)
  
file_path: backtrader/samples/pyfolio2/pyfoliotest.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import collections
  import datetime
  import backtrader
label_desc: Use image node_id 1 to create a new St object from inherited base classes: bt with example: obj = St()