Stocks rose to another record on Thursday as solid corporate earnings and the easing of trade war tensions added to Wall Street’s strong start in 2020.

The S&P 500, the Nasdaq composite and the Russell 2000 indexes all ended the day in record territory. Tech and semiconductor shares, which had been sensitive to worries about the trade war and the slowdown of the global economy last year, led the gains. Google’s parent, Alphabet, closed at a market capitalization of $1 trillion for the first time.

After a 0.8 percent climb Thursday, the S&P 500 is up some 2.7 percent in January, showing that the nearly 11-year-old bull market still has plenty of legs left.

The sunny optimism of the stock market may seem surprising in the context of widespread political turbulence in the United States and around the world. On Thursday, the Senate formally opened the impeachment trial of President Trump. And just a couple of weeks ago, outright war between the United States and Iran seemed a distinct possibility.