Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Fundamental Data Analysis of Q500US Returns - Heatmap

Hello Quantopians. This is the second post of my series of posts for my Investment Strategies class at University. The task this time is to build a Heatmap analyzing the cross relationship between two factors and their average (overnight) returns through a period of time. For my analysis I chose the price earning ratio in relation with the market cap and their average overnight returns for the period from October, 2017 until October 2018.

(PS: there is something wrong with the way i am calculating overnight returns, it would be really appreciated if someone could help with that)

Update on 14 November : i tried to solve some of the problems i had in the last notebook. i was calculating the overnight return using two separate pipelines and the results i got seemed to be wrong. I used the get pricing function now and it looks like that i got better results but i am still not 100% sure if the way i calculated the overnight returns are right since the length of the open and close prices that i get is different. You can find the old notebook is in the comment section below.

Please feel free to comment, correct any mistakes or make any suggestions.
Thank you.

1 response

Old notebook