Skip to content
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

Merged
merged 1 commit into from
Dec 8, 2015
Merged

Conversation

a-campbell
Copy link
Contributor

Issue: #218

screenshot 2015-12-03 18 21 13

@a-campbell
Copy link
Contributor Author

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.

@twiecki twiecki self-assigned this Dec 4, 2015
The positions that the strategy takes over time.
ax : matplotlib.Axes, optional
Axes upon which to plot.
**kwargs, optional
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left-over.

Copy link
Contributor

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.

@twiecki
Copy link
Contributor

twiecki commented Dec 4, 2015

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.

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):
Copy link
Contributor

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

@a-campbell
Copy link
Contributor Author

Should be good to go now.

a-campbell added a commit that referenced this pull request Dec 8, 2015
ENH Plot max and median long/short exposures
@a-campbell a-campbell merged commit fda0433 into master Dec 8, 2015
@a-campbell a-campbell deleted the pos-concentration branch December 8, 2015 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants