AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

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

未关闭
#107 0 条评论 0 个 reaction 已指派 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 摘要。