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

Stock / Options trading log #1

Open
AdventureBear opened this issue Sep 18, 2019 · 2 comments
Open

Stock / Options trading log #1

AdventureBear opened this issue Sep 18, 2019 · 2 comments

Comments

@AdventureBear
Copy link

Create a stock or options trading log where you ennter as a line item each opening & closing trade. The app then calculates days held, total P/L, %age P/L, total account P/L, a list of equity value if all open trades were closed at market price.

The app should automatically detect a closing order for a prior opening order, and should appropriately use the correct cost basis (purchase price) when selling / closing a partial order.

ie buy 5 shares of XZY on 1/1/18 for $32 each. On 2/1/18 sell 3 shares at $42 and on 3/1/18 sell the remaining 2 shares at $47. Each sale should use the purchase price as it's cost basis and then close out that opening purchase when all bought shares are accounted for.

JUst an idea I implemented in excel tonight except for the last part with partial orders. That's why I think it'd be an interesting project.

I won't be sad if you do not do it. :)

@florinpop17
Copy link
Owner

This seems pretty complex for a 1 day project, isn't it? 😅

@AdventureBear
Copy link
Author

AdventureBear commented Sep 20, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants