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

Adjust existing position with newly entered position when "Add options to Trade" is used. #15

Open
Flippo24 opened this issue Jan 1, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@Flippo24
Copy link

Flippo24 commented Jan 1, 2024

I am selling 5 puts.
I close 1 put via close leg. Remain -4.
If I now select Add Options to Trade and buy 2 puts, these are not deducted from the current position. Instead, a long position is opened.

grafik

It might make sense if it is the same strike, has the same expiration date and there are enough units available.

@PaulSquires
Copy link
Owner

Ok, I understand what you are doing. The program does not currently have that logic built in where it determines that you buying long Puts to essentially Buy To Close (BTC) part of your existing position. As you know, it would be better to use the "Close Leg" functionality and close 2 of your 4 Puts, however, I do need to build your buying long puts scenario into the program. Thanks for the example. I will do my best to incorporate this logic into the program.

@PaulSquires PaulSquires self-assigned this Jan 3, 2024
@PaulSquires PaulSquires added the enhancement New feature or request label Jan 3, 2024
@Flippo24
Copy link
Author

Can you perhaps also add a closing of the entire position as with a leg? Maybe in the menu like in the picture.

grafik

@PaulSquires
Copy link
Owner

Sounds good to me. I should be able to add that option pretty easily.

@PaulSquires
Copy link
Owner

Okay, I have added your suggestion to the popup menu. It was not as simple as it sounded because the Trade could involve BOTH shares/futures AND options, so simply having a "Close Trade" menu option would not work. In situations where there only exists just SHARES, or just FUTURES, or just OPTIONS, then I display the "Close Trade" option. In mixed case situations I display multiple "close" menu options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants