不应该是45,30吗?
self.bg = NewBarGenerator(self.on_bar,window= 45,on_window_bar= self.on_45min_bar,interval=Interval.MINUTE)
if self.interval == Interval.MINUTE:
# # x-minute bar
# if not (bar.datetime.minute + 1) % self.window:
# finished = True
if self.last_bar and bar.datetime.minute != self.last_bar.datetime.minute:
self.interval_count += 1
if not self.interval_count % self.window:
finished = True
self.interval_count = 0