-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH Plot max and median long/short exposures #237
Conversation
A potentially misleading part of this plot is the fact that median takes the average two position concentrations when there are an even number of longs or shorts. |
The positions that the strategy takes over time. | ||
ax : matplotlib.Axes, optional | ||
Axes upon which to plot. | ||
**kwargs, optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left-over.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still doesn't do anything with kwars below.
It should take the average between the two center values if there's an even number but that's fine and expected. Otherwise LGTM. |
@@ -97,6 +97,37 @@ def get_top_long_short_abs(positions, top=10): | |||
return df_top_long, df_top_short, df_top_abs | |||
|
|||
|
|||
def get_max_median_position_conc(positions): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_max_median_position_concentration
b266b70
to
e469e06
Compare
Should be good to go now. |
e469e06
to
103be26
Compare
ENH Plot max and median long/short exposures
Issue: #218