 Market indexes rose on Tuesday as, along with a new batch of earnings and economic data, investors weighed tensions between the U.S. and China as House Speaker Nancy Pelosi begins a visit to Taiwan. 