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

Optionally calculate net shorts #355

Merged
merged 1 commit into from Jan 18, 2024
Merged

Optionally calculate net shorts #355

merged 1 commit into from Jan 18, 2024

Conversation

brndnmtthws
Copy link
Owner

In the event we want to use calendar spreads, we can have ThetaGang be a little more intelligent when calculating whether to write new positions or roll our current short contracts by computing the net short contracts. In effect, we count the short-dated contracts and subtract any longer-dated positions from those, giving us the net position. We also check that the long strikes are safely higher/lower (put/call) to avoid any traps.

This can be enabled by setting write_when.calculate_net_contracts = true.

In the event we want to use calendar spreads, we can have ThetaGang be a
little more intelligent when calculating whether to write new positions
or roll our current short contracts by computing the net short
contracts. In effect, we count the short-dated contracts and subtract
any longer-dated positions from those, giving us the net position. We
also check that the long strikes are safely higher/lower (put/call) to
avoid any traps.

This can be enabled by setting `write_when.calculate_net_contracts =
true`.
@brndnmtthws brndnmtthws merged commit e668c06 into main Jan 18, 2024
8 checks passed
@brndnmtthws brndnmtthws deleted the net-contracts branch January 18, 2024 20: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.

None yet

1 participant