The S&P 500 and Nasdaq 100 indexes turned higher for the year on Tuesday, reversing multi-trillion dollar routs, as enthusiasm for US stocks grows with global trade tensions cooling after the Trump administration and China agreed to temporarily lower tariffs.