self.day_open = bar.open_price
self.day_high = bar.high_price
self.day_low = bar.low_price
这里储存的day_high 是给第二天用吗?那day_open 有什么用呢?
if self.day_high:
这个是day_high 为什么值的时候成立 0 当作false了吗
if last_bar.datetime.date() != bar.datetime.date():
if self.day_high: #每根分钟K线收到后,都在实时聚合为日线的高低点统计数据,以作后续使用,标准的DT逻辑 存放的就是前后1分钟的K线数据
self.day_range = self.day_high - self.day_low
self.long_entry = bar.open_price + self.k1 * self.day_range
self.short_entry = bar.open_price - self.k2 * self.day_range
xiaohe wrote:
这是vn.py的专用链接https://www.ricequant.com/welcome/purchase?utm_source=vnpy
我就是按这个申请的,没有名片不给通过,怎么购买?
官方上添加的微信,屌炸了,不理人。