stock.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:autoxd 作者: nessessary 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号