AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

Question about actions = actions / closings in StockTradingEnvV2.step() (tutorial_this_works_1_18.ipynb)

オープン
#107 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Jupyter Notebook
スター
1.2k
フォーク
435
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello AI4Finance team,

First of all, thank you for providing the excellent tutorials and open-source implementations in FinRL — they are very helpful for reinforcement learning applications in finance!

I have a question regarding the notebook:
📍 FinRL-Tutorials/5-Others/tutorial_this_works_1_18.ipynb
Specifically in:
Part 5. Design Environment → class StockTradingEnvV2(gym.Env)

In the step(self, actions) function, I noticed the following line:
"actions = actions / closings"

Could you kindly explain the purpose of this line?

Is it intended to normalize the action values by the stock's closing prices?

Or does it serve a different function related to position sizing, portfolio allocation, or transaction cost handling?

I’d appreciate any clarification you could provide.

Thank you so much again for your amazing work!

Best regards

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。