Open AdventureBear opened 5 years ago
This seems pretty complex for a 1 day project, isn't it? 😅
I don’t know...you’re a smart guy! The complex part for me is splitting the sale and tying into the purchase of not all shares are sold at once.
On Fri, Sep 20, 2019 at 4:52 AM Florin Pop notifications@github.com wrote:
This seems pretty complex for a 1 day project, isn't it? 😅
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/florinpop17/100Days100Projects/issues/1?email_source=notifications&email_token=ABWZ4TSUDV7TT7M3XGDBZ23QKSFNXA5CNFSM4IXWVFC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7GBLTQ#issuecomment-533468622, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWZ4TV7G4BMN3NKUSCREQDQKSFNXANCNFSM4IXWVFCQ .
--
Suzanne Atkinson, MD Clinical Instructor of Emergency Medicine University of Pittsburgh School of Medicine Emergency Resource Management, Inc.
Head Coach & Founder Steel City Endurance Coaching
Co-Founder Fresh Freestyle
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. :)