from Hacker News

Can anyone review my options trading P/L calculation algorithm

by ohsik on 1/2/23, 4:28 PM with 1 comments

  • by ohsik on 1/2/23, 4:28 PM

    I've always wondering why Robinhood does not offer Profit/Loss reports on my trading history. Decided to build a Chrome extension for that over the holiday season and found out that options P/L calculation is more complicated than I expected when options events(expiration, exercise, and assignment) are count.

    I think I got this working but would love to have some eyes on it from experts :) Please lmk if you are interested!