code: def __init__(self, feed, instrument, smaPeriod):
      super(MyStrategy, self).__init__(feed, 1000)
      self.__position = None
      self.__instrument = instrument
      # We'll use adjusted close values instead of regular close values.
      self.setUseAdjustedValues(True)
      self.__sma = ma.SMA(
          feed[instrument].getPriceDataSeries(), smaPeriod
      )
  
file_path: pyalgotrade/samples/tutorial-4.py
imports: from __future__ import print_function
  from pyalgotrade import strategy
  from pyalgotrade.barfeed import quandlfeed
  from pyalgotrade.technical import ma
label_desc: Use image node_id 1 to create a new MyStrategy object from inherited base classes: strategy with example: obj = MyStrategy(feed, instrument, smaPeriod)