Portfolio grouped stats on every parameters #608
eromoe
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since I haven't found a way to calculate grouped stats on vbt.Portfolio, I wrote below code and share here.
s = grouped_stats(pf)
And now you can use idxmax on more metric .
Now I am working on rolling stats, trying to understand how to reuse the vbt api.
Beta Was this translation helpful? Give feedback.
All reactions