code: def init_strate(self, global_setting, quant_frame, event_engine):
          
  
          if type(self._quant_frame) is not int:
              return True
  
          self._quant_frame = quant_frame
          self._event_engine = event_engine
          init_ret = self.__loadSetting(global_setting)
  
          # 注册事件
          self._event_engine.register(EVENT_BEFORE_TRADING, self.__event_before_trading)
          self._event_engine.register(EVENT_AFTER_TRADING, self.__event_after_trading)
          self._event_engine.register(EVENT_QUOTE_CHANGE, self.__event_quote_change)
          self._event_engine.register(EVENT_CUR_KLINE_BAR, self.__event_cur_kline_bar)
  
          self.log("init_strate '%s' ret = %s" % (self.name, init_ret))
  
          # 对外通知初始化事件
          self.on_init_strate()
  
          return init_ret
docs: TinyQuantFrame 初始化策略的接口