code: def onEnterCanceled(self, position):
      self.printDebug(
          "enterCanceled: ", self.getCurrentDateTime(), position
      )
      if position == self.__longPos:
          self.__longPos = None
      elif position == self.__shortPos:
          self.__shortPos = None
      else:
          assert False
  
imports: from .None import common
  from pyalgotrade import strategy
  from pyalgotrade.barfeed import yahoofeed
  from pyalgotrade.technical import ma
  from pyalgotrade.technical import cross
label_desc: Use image node_id 9 for calling the SMACrossOverStrategy obj's underlying member method code with example usage: obj.onEnterCanceled(position) without return types