AI4Finance-Foundation / AI4Finance-Foundation/FinRL

No Close Price in CryptoEnv

未关闭
#1,367 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jupyter Notebook
星标
16.3k
派生
3.5k
PR 合并指标
30 天内没有已合并 PR

描述

The code below does not contain any information about the crypto pair price in CryptoEnv class at all. Is there any reason for that?
In StockTradingEnv it does.

```
def get_state(self):
state = np.hstack((self.cash * 2 ** -18, self.stocks * 2 ** -3))
for i in range(self.lookback):
tech_i = self.tech_array[self.time-i]
normalized_tech_i = tech_i * 2 ** -15
state = np.hstack((state, normalized_tech_i)).astype(np.float32)
return state

```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。