code: def on_bar_min1(self, tiny_bar):
          
          bar = tiny_bar
          symbol = bar.symbol
          str_dt = bar.datetime.strftime("%Y%m%d %H:%M:%S")
  
          # 得到分k数据的ArrayManager(vnpy)对象
          am = self.get_kl_min1_am(symbol)
          array_high = am.high
          array_low = am.low
          array_open = am.open
          array_close = am.close
          array_vol = am.volume
  
          n = 5
          ma_high = self.ema(array_high, n)
          ma_low = self.ema(array_low, n)
          ma_open = self.ema(array_open, n)
          ma_close = self.ema(array_close, n)
          ma_vol = self.ema(array_vol, n)
  
          str_log = "on_bar_min1 symbol=%s dt=%s ema(%s) open=%s high=%s close=%s low=%s vol=%s" % (
              symbol, str_dt, n, ma_open, ma_high, ma_close, ma_low, ma_vol)
          self.log(str_log)
docs: 每一分钟触发一次回调