-
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
Slippage sweep #170
Slippage sweep #170
Conversation
I like it, nice addition @acampbell22! |
@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] |
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.
I'd put this into a tuple and add it to the default kwargs above.
5021782
to
f2eef22
Compare
…t for slippage adjustement in all full tearsheet plots. STY Moved turnover to txn.py. Moved transactions related tests to separate file
7cbd3b2
to
42a5309
Compare
Timeseries of portfolio returns to be adjusted for various | ||
degrees of slippage. | ||
transactions : pd.DataFrame | ||
Daily transaction volume and dollar ammount. |
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.
typo ammount.
Merged with 07e40a5. Thanks! |
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.