saeedmarzban / waveCorr

waveCorr policy gradient model for portfolio management
5 stars 3 forks source link

y_close #3

Closed m1996 closed 2 years ago

m1996 commented 2 years ago

Hi I've noticed that the 'y_close' is [daily returns+1] which has been shifted 2 rows. Am I right? why 2?

saeedmarzban commented 2 years ago

Yes, That is right. The reason is to be consistent with what happens in reality. The agent receives the close price at the end of the day, next day early in the morning puts the buy/sell request and the request is met during the day. So we consider the actual return of the stock to be during the close price at the end of next day and the close price at the end of the day after.

m1996 commented 2 years ago

that's what I thought:) Thank you so much

m1996 commented 2 years ago

Sorry bothering you again, is there any especial reason for "3000" epochs? Why not more?

On Wed, Feb 9, 2022, 3:12 AM Saeed Marzban @.***> wrote:

Yes, That is right. The reason is to be consistent with what happens in reality. The agent receives the close price at the end of the day, next day early in the morning puts the buy/sell request and the request is met during the day. So we consider the actual return of the stock to be during the close price at the end of next day and the close price at the end of the day after.

— Reply to this email directly, view it on GitHub https://github.com/saeedmarzban/waveCorr/issues/3#issuecomment-1033173410, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWCL3AHCHHXD5MTEHFGACTU2GTAFANCNFSM5M26NWLA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>