Trayder, you are correct, but on year three, you can only write off a $3000.00 loss. Not $7000.00. You can carry losses into the next year, but can only show max. loss of $3000.00 per year.
So on year three you would pay taxes on $7000.00 {$10.000 profit minus max. of $3000.00 loss}...