code: def next(self):
      if not self.position:
          if self.crup:
              o = self.buy()
              self.order = None
              print("*" * 50)
  
      elif self.order is None:
          if self.p.stoptype == bt.Order.StopTrailLimit:
              price = self.data.close[0]
              plimit = self.data.close[0] + self.p.limitoffset
          else:
              price = None
              plimit = None
  
          self.order = self.sell(
              exectype=self.p.stoptype,
              price=price,
              plimit=plimit,
              trailamount=self.p.trailamount,
              trailpercent=self.p.trailpercent,
          )
  
          if self.p.trailamount:
              tcheck = self.data.close - self.p.trailamount
          else:
              tcheck = self.data.close * (1.0 - self.p.trailpercent)
          print(
              ",".join(
                  map(
                      str,
                      [
                          self.datetime.date(),
                          self.data.close[0],
                          self.order.created.price,
                          tcheck,
                      ],
                  )
              )
          )
          print("-" * 10)
      else:
          if self.p.trailamount:
              tcheck = self.data.close - self.p.trailamount
          else:
              tcheck = self.data.close * (1.0 - self.p.trailpercent)
          print(
              ",".join(
                  map(
                      str,
                      [
                          self.datetime.date(),
                          self.data.close[0],
                          self.order.created.price,
                          tcheck,
                      ],
                  )
              )
          )
  
file_path: backtrader/samples/stoptrail/trail.py
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 St obj's underlying member method code with example usage: obj.next() without return types