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

Slippage sweep #170

Closed
wants to merge 3 commits into from
Closed

Slippage sweep #170

wants to merge 3 commits into from

Conversation

a-campbell
Copy link
Contributor

Adds new function to add slippage to returns time series. User can pass slippage-free returns and add slippage before generating plots and figures. If slippage is set, a plot of equity curves at different slippage assumptions will be generated. A plot of average annual returns at various levels of slippage will also be created.

screenshot 2015-10-09 15 51 02

@humdings
Copy link
Contributor

I like it, nice addition @acampbell22!

@twiecki
Copy link
Contributor

twiecki commented Oct 14, 2015

@humdings can you help review this?

turnover = txn.get_turnover(transactions, positions,
period=None, average=False)
if slippage_params is None:
slippage_params = [3, 8, 10, 12, 15, 20, 50]
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd put this into a tuple and add it to the default kwargs above.

…t for slippage adjustement in all full tearsheet plots.

STY Moved turnover to txn.py. Moved transactions related tests to separate file
Timeseries of portfolio returns to be adjusted for various
degrees of slippage.
transactions : pd.DataFrame
Daily transaction volume and dollar ammount.
Copy link
Contributor

Choose a reason for hiding this comment

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

typo ammount.

@twiecki
Copy link
Contributor

twiecki commented Oct 21, 2015

Merged with 07e40a5. Thanks!

@twiecki twiecki closed this Oct 21, 2015
@twiecki twiecki deleted the slippage-sweep branch October 21, 2015 09:06
@twiecki twiecki restored the slippage-sweep branch October 21, 2015 09:06
@twiecki twiecki deleted the slippage-sweep branch December 7, 2015 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants