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

Write a "Stay In-Range" script which keeps a put and call being sold at the current price, all the time #22

Open
flanagansteve opened this issue Sep 10, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request high priority High priority task to work on

Comments

@flanagansteve
Copy link
Collaborator

  • If there are no open positions, sell a put and call at the current price
  • If there are open positions, check if they are a put and call at the current price. If so, do nothing. If not, close the current open positions, and sell new ones at the current price.
    • "close the current open positions" can be complicated if some of the open positions have been bought, and you can't simply just call burnOptions on them. Try to either force-exercise or sell-to-reduce-size on the open positions if some of them have been partially purchased.
    • Ensure that the logic that checks if the current open positions are currently in-range is in its own modular gateway method
@flanagansteve flanagansteve changed the title Write a basic script which keeps a put and call being sold at the current price, all the time Write a "Stay In-Range" script which keeps a put and call being sold at the current price, all the time Sep 10, 2024
@ndeporzio ndeporzio self-assigned this Sep 16, 2024
@ndeporzio ndeporzio added enhancement New feature or request high priority High priority task to work on labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority High priority task to work on
Projects
None yet
Development

No branches or pull requests

2 participants