code: def next(self):
      if not self.position and self.crossup > 0:
          if self.buy_order:  # something was pending
              self.cancel(self.buy_order)
  
          # not in the market and signal triggered
          if not self.p.buy_limit:
              self.buy_order = self.buy(transmit=False)
          else:
              price = self.data.close[0] * (1.0 - self.p.buy_limit)
  
              # transmit = False ... await child order before transmission
              self.buy_order = self.buy(
                  price=price, exectype=bt.Order.Limit, transmit=False
              )
  
          # Setting parent=buy_order ... sends both together
          if not self.p.trail:
              stop_price = self.data.close[0] * (1.0 - self.p.stop_loss)
              self.sell(
                  exectype=bt.Order.Stop,
                  price=stop_price,
                  parent=self.buy_order,
              )
          else:
              self.sell(
                  exectype=bt.Order.StopTrail,
                  trailamount=self.p.trail,
                  parent=self.buy_order,
              )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import backtrader
label_desc: Use image node_id 2 for calling the AutoStopOrStopTrail obj's underlying member method code with example usage: obj.next() without return types