Roth IRA contribution

I have two Schedule Cs this year.  One for a +$7000 profit and one for a -$3000 loss.  TT is saying it's ok if I make a Roth Contribution of $6000 without penalty.  Shouldn't I only be able to make a $4000 contribution (7000-3000=$4000 net)?  

 

Thank you!!!