(This version of the April 6 story corrects paragraph 11 to say trillion, not billion)

(Reuters) - Wall Street’s major indexes closed slightly higher on Thursday but finished well off session highs as investors were nervous about upcoming talks between China’s President Xi Jinping and U.S. President Donald Trump.

The leaders of the world’s two biggest economies are to greet each other at the president’s Mar-a-Lago retreat in Palm Beach, Florida, late Thursday afternoon, kicking off a summit that will conclude with a working lunch on Friday.

Investors are anxious for news on China-U.S. trade relations and discussions on reining in North Korea’s arms program, according to market participants.

“People are concerned because this could go south in a hurry because the Chinese president is a savvy politician with a lot of experience in these types of things and you have a novice (U.S.) politician on the world stage,” said Peter Costa, President, Empire Executions Inc in New York.

“The meeting is going to set the tone for what comes ahead and you don’t want the tone to be negative,” said Costa.

Stocks pared gains in the late afternoon after U.S. Secretary of State Rex Tillerson made comments on the meeting.

From Mar-a-Lago, Tillerson said the United States will “pursue economic engagement with China that prioritizes the economic wellbeing of the American people” and would not shy away from frank discussions.

“Tillerson sounded like he was taking a little bit of a hardline stance with China,” said Brian Jacobsen, chief portfolio strategist at Wells Fargo Funds Management in Menomonee Falls, Wisconsin. “This increases the risks that this could be a bit more confrontational than a friendly get-together between Presidents Trump and Xi.”

The Dow Jones Industrial Average .DJI closed up 14.8 points, or 0.07 percent, to close at 20,662.95, the S&P 500 .SPX gained 4.54 points, or 0.19 percent, to 2,357.49 after reaching a session high of 2364.16 earlier in the day.

The Nasdaq Composite .IXIC added 14.47 points, or 0.25 percent, to 5,878.95.

The stock market had dramatically reversed course to close lower on Wednesday after signals that the Fed would start to trim its $4.5 trillion balance sheet this year.

But investors reconsidered their reactions on Thursday, according to Stephen Massocca, Senior Vice President at Wedbush Securities in San Francisco.

A trader works on the floor of the New York Stock Exchange (NYSE) in New York, U.S., March 30, 2017. REUTERS/Brendan McDermid

“The Fed isn’t going to be indiscriminately pulling the prop out from under the market. There will be some sensitivity to what’s going on in the economy,” said Massocca.

Four of the 11 major S&P sectors ended lower. The energy index .SPNY rose 0.8 percent as oil prices CLc1LCOc1 rose to near one-month highs. [O/R] Comcast Corp CMCSA.O was the S&P's biggest boost with a 2.1 percent gain to $38.13 after it announced a wireless service.

Some investors are cautious ahead of the start of the corporate earnings season next week given the lofty valuations. The S&P 500 index is trading at about 18 times forward earnings estimates, above its long-term average of 15.

Advancing issues outnumbered declining ones on the NYSE by a 3.20-to-1 ratio; on Nasdaq, a 2.18-to-1 ratio favored advancers.

The S&P 500 posted 8 new 52-week highs and four new lows; the Nasdaq Composite recorded 32 new highs and 61 new lows.

About 6.4 billion shares changed hands on U.S. exchanges compared with the 6.8 billion average for the last 20 sessions.