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

Long & Short #401

Open
pedrorjbr opened this issue Jan 2, 2023 · 1 comment
Open

Long & Short #401

pedrorjbr opened this issue Jan 2, 2023 · 1 comment

Comments

@pedrorjbr
Copy link

I would like to execute a long on a set of security and short in a index, like S&P. The short should be the same size of the long position.

Does anyone has a sample of that? Is that possible?

@boyac
Copy link

boyac commented Feb 5, 2023

@pedrorjbr it's possible though. I used to construct a similar strategy by long/short indices. I used a target weight to achieve that, fyi. It's a long time ago, so I don't have the script/example left. And bt package has continue to evolve, maybe there are other functions that can be applied, too. Hope this helps.

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

No branches or pull requests

2 participants