You can use this template to track your investments.

Click on duplicate to make this template yours!

Add new row for each investment you want to add.

Once you sell your investment you can remove that from investments and add that in past investments.