The S&P 500 ends the week up 4% even as hopes for a quick trade war truce fade