I am trying to calculate loss/gain for stock sold. When calculating the cost of past purchases, should I include the cost of all stocks in my portfolio or just the cost for the same stock that was sold?
valid question