Stocks ended the week down Signs of a slowing economy in Asia and Europe wiped out gains earlier in the…