-
Notifications
You must be signed in to change notification settings - Fork 71
Question regarding Model State #4
Comments
The trading model is this: at time stamp t, allocate portfolio denoted as w1 and buy using open price and sell all the portfolio using close price at timestamp t and so on. So at the beginning of each timestamp, we assume you only hold money without any asset. It's actually a process of distribution, gather and redistribution. |
I see, so your commission cost in this scenario is the percentage of the profit that is treated as commission, if that is correct? |
Yes. |
A couple other questions I have is:
Thank you for taking the time to answer these questions. |
|
I read through your PortfolioEnv code and your DDPG code. It seems to me that the state of your model only incorporates the window of price returns for each asset, and does not incorporate the previous portfolio allocation. This is reflected in how the commission is computed in PortfolioEnv: where you say that dw1 = (y1 * w1) / (np.dot(y1, w1) + eps). Comparing this to the PortfolioEnv implemented by wassname: dw1 = (y1 * w0) / (np.dot(y1, w0) + eps). Can you explain why you calculate the commission in this manner? Much appreciated, thanks.
The text was updated successfully, but these errors were encountered: