AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

Absence of close price in state in FinRL_MultiCrypto_Trading.ipynb

未關閉
#110 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Jupyter Notebook
星號
1.2k
分支
435
PR 合併指標
30 天內沒有已合併 PR

描述

The code below does not contain any information about the crypto pair price 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 摘要。