class_docstr: This strategy operates on 2 datas. The expectation is that the 2 datas are
  correlated and the 2nd data is used to generate signals on the 1st
  
    - Buy/Sell Operationss will be executed on the 1st data
    - The signals are generated using a Simple Moving Average on the 2nd data
      when the close price crosses upwwards/downwards
  
  The strategy is a long-only strategy
class_docstr_tok: ["This","strategy","operates","on","2","datas",".","The","expectation","is","that","the","2","datas","are","correlated","and","the","2nd","data","is","used","to","generate","signals","on","the","1st","-","Buy\/Sell","Operationss","will","be","executed","on","the","1st","data","-","The","signals","are","generated","using","a","Simple","Moving","Average","on","the","2nd","data","when","the","close","price","crosses","upwwards\/downwards","The","strategy","is","a","long-only","strategy"]
code: def next(self):
      if self.orderid:
          return  # if an order is active, no new orders are allowed
  
      if self.p.printout:
          print("Self  len:", len(self))
          print("Data0 len:", len(self.data0))
          print("Data1 len:", len(self.data1))
          print(
              "Data0 len == Data1 len:",
              len(self.data0) == len(self.data1),
          )
  
          print("Data0 dt:", self.data0.datetime.datetime())
          print("Data1 dt:", self.data1.datetime.datetime())
  
      if not self.position:  # not yet in market
          if self.signal > 0.0:  # cross upwards
              self.log("BUY CREATE , %.2f" % self.data1.close[0])
              self.buy(size=self.p.stake)
  
      else:  # in the market
          if self.signal < 0.0:  # crosss downwards
              self.log("SELL CREATE , %.2f" % self.data1.close[0])
              self.sell(size=self.p.stake)
  
file_path: backtrader/samples/multidata-strategy/multidata-strategy-unaligned.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import backtrader
  import backtrader.feeds
  import backtrader.indicators
label_desc: Use image node_id 4 for calling the MultiDataStrategy obj's underlying member method code with example usage: obj.next() without return types