code: def next(self):
      # If sma1 crosses above sma2, close any existing
      # short trades, and buy the asset
      if crossover(self.sma1, self.sma2):
          self.position.close()
          self.buy()
  
      # Else, if sma1 crosses below sma2, close any existing
      # long trades, and sell the asset
      elif crossover(self.sma2, self.sma1):
          self.position.close()
          self.sell()
  
file_path: backtesting.py/doc/examples/Quick Start User Guide.py
imports: from backtesting.test import GOOG
  import pandas
  from backtesting import Strategy
  from backtesting.lib import crossover
  from backtesting import Backtest
label_desc: Use image node_id 2 for calling the SmaCross obj's underlying member method code with example usage: obj.next() without return types