I suggest you stop trading for a while first. Just rest a bit and think of how your emotions affected your trades. Then come back with determination to not be swayed by emotions.