def XiangDuiQuJian(self):
"""????"""
account = Account()
for i in range(60, self.getSize(), 1):
if 0: hisdat = Hisdat
hisdat = self.getData(i)
day = 60
high = self.HHV("close", i, day)
low = self.LLV("close", i, day)
cur = hisdat.close
v = (cur-low)/(high-low)
if v > 0.9:
account.sell(self.code, hisdat.close, -1, hisdat.date)
if v < 0.1 :
account.buy(self.code, hisdat.close, -1, hisdat.date)
print(account.money)
print(account.getMoney())
self.myprint()
account.printWeiTuo()
评论列表
文章目录