code: def onExitOk(self, position):
      if self.__longPos == position:
          self.__longPos = None
      elif self.__shortPos == position:
          self.__shortPos = None
      else:
          assert False
  
file_path: pyalgotrade/samples/rsi2.py
imports: from pyalgotrade import strategy
  from pyalgotrade.technical import ma
  from pyalgotrade.technical import rsi
  from pyalgotrade.technical import cross
label_desc: Use image node_id 6 for calling the RSI2 obj's underlying member method code with example usage: obj.onExitOk(position) without return types