This is because if the selling taxpayer has net gain from the sale of other property that is included in investment income, he is permitted to offset that gain (but not create a net loss) with any loss generated from the sale of the stock or partnership interest.