code: def eventOccurred(self, instrument, bards):
      ret = False
      if self.__gappedDown(instrument, bards) and self.__aboveSMA(
          instrument, bards
      ):
          ret = True
      return ret
  
file_path: pyalgotrade/samples/eventstudy.py
imports: from __future__ import print_function
  from pyalgotrade import eventprofiler
  from pyalgotrade.technical import stats
  from pyalgotrade.technical import roc
  from pyalgotrade.technical import ma
  from pyalgotrade.tools import quandl
label_desc: Use image node_id 4 for calling the BuyOnGap obj's underlying member method code with example usage: obj.eventOccurred(instrument, bards) and returns: ret