code: def __init__(self, feed):
      super(MyStrategy, self).__init__(feed, 1000000)
  
      # We wan't to use adjusted close prices instead of close.
      self.setUseAdjustedValues(True)
  
      # Place the orders to get them processed on the first bar.
      orders = {
          "ibm": 1996,
          "aes": 22565,
          "aig": 5445,
          "orcl": 8582,
      }
      for instrument, quantity in orders.items():
          self.marketOrder(
              instrument, quantity, onClose=True, allOrNone=True
          )
  
file_path: pyalgotrade/samples/compinv-1.py
imports: from __future__ import print_function
  from pyalgotrade import strategy
  from pyalgotrade.barfeed import quandlfeed
  from pyalgotrade.stratanalyzer import returns
  from pyalgotrade.stratanalyzer import sharpe
  from pyalgotrade.utils import stats
label_desc: Use image node_id 1 to create a new MyStrategy object from inherited base classes: strategy with example: obj = MyStrategy(feed)