RL-Stock
RL-Stock copied to clipboard
📈 如何用深度强化学习自动炒股
应该是gast、tensorboard、tensorflow-estimator的版本没有同步修改 cmd:pip install -r requirements.txt Log: ERROR: tensorflow-gpu 1.15.2 has requirement gast==0.2.2, but you'll have gast 0.3.3 which is incompatible. ERROR: tensorflow-gpu 1.15.2 has requirement tensorboard=1.15.0, but you'll have tensorboard...
53行,写入文件, df_code.to_csv(f'{self.output_dir}/{row["code"]}.{row["code_name"]}.csv' 当股票代码为*ST开头的时候, 会报错,去掉{row["code_name"]}之后正常。
- 修复*号ST的错误 - 增加前复权参数
不赚不赔的情况占比例那么多的原因是否有分析过,是否会有过拟合的情况出现?
1. 股票数据没有复权。 adjustflag 默认是3(不复权) 2. 购买/销售 价格来自过去,实际上是买不到的。比如你拿到了今天以及之前的数据,但是你的购买价格只能来自明天之后。 3. 没有考虑交易手续费