请问各位大佬这两种方式合成1日K线有区别吗,为什么第二种on_1day_bar()是每一小时(4个15分钟)执行了一次
1)
# K线池,合成15分钟
self.bg_15min = BarGenerator(self.on_bar, window=15, on_window_bar=self.on_15min_bar, interval=Interval.MINUTE)
self.am_15min = ArrayManager()
self.bg_1day = BarGenerator(self.on_bar, window=24, on_window_bar=self.on_1day_bar, interval=Interval.HOUR)
self.am_1day = ArrayManager()
2)
# K线池,合成15分钟
self.bg_15min = BarGenerator(self.on_bar, window=15, on_window_bar=self.on_15min_bar, interval=Interval.MINUTE)
self.am_15min = ArrayManager()
self.bg_1day = BarGenerator(self.on_bar, window=1, on_window_bar=self.on_1day_bar, interval=Interval.DAILY)
self.am_1day = ArrayManager()
第一个self.am_1day不就是100根24小时K线,第二个self.am_1day是100根1日K线,难道不对吗?应该没有区别吧。