Investors & landlords

Each contract is a separate transaction and will be accounted for in the same manner as a regular stock trade.

The IRS is not a fan of any "netting" regardless of the transaction.  

*A reminder that posts in a forum such as this do not constitute tax advice.
Also keep in mind the date of replies, as tax law changes.