-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the cost is updating with new value of shares or old ones ? #33
Comments
self.cost is a is a variable to track the cost of the agents strategy and updated after each sell/buy action
so yes you are right every sell action deductes the transaction cost directly from the balance i created a similar environment but seperated the balance, stock_prices, num_stocks in the portfolio to increase readability def _sell_stock(self, index, action): self.holdings[index] > 0: (step 1) |
When the selling of stock happens, and the cost is updated, I think this update with new amount of shares.
I mean, first time
self.state[index+STOCK_DIM+1]
is updated and this updated version is participated to compute costsThe text was updated successfully, but these errors were encountered: