Major stock indexes rose Thursday, as investors digested the latest batch of corporate earnings and China trade news.