quantopian / pyfolio

Portfolio and risk analytics in Python
https://quantopian.github.io/pyfolio
Apache License 2.0
5.62k stars 1.76k forks source link

Investigate adding support for different frequencies of data #357

Open gusgordon opened 7 years ago

gusgordon commented 7 years ago

Currently, we only officially support daily returns and positions streams. Some tear sheets and plots work okay with other frequencies of data (e.g. monthly). Other plots and performance functions, namely the beta and Fama-French factors, will fail to compute accurate measures because they compare their daily reference data to whatever is thrown at them.

It would definitely be useful to support different frequencies if we can do it in a way that's elegant. I'm not sure what the best way to do this is, open for input and help.

eigenfoo commented 6 years ago

@kitovh has expressed interest in looking into this! Duplicate of #456.

I took a cursory glance at the code, and this issue looks like it'll take more reading than writing code. Unfortunately I'm not free right now to whip up a PR, but I'd be happy to help anyone who wants to take this up.

Thoughts?