* White House adviser says China-U.S. trade deal still possible
* Dollar gains as Fed's Clarida backs further rate hikes
* Oil prices stay close to year lows (Updates throughout with mid-afternoon U.S. trading)
By Saqib Iqbal Ahmed
NEW YORK, Nov 27 (Reuters) - Stocks on Wall Street eked out modest gains on Tuesday as traders remained hopeful that the United States and China can work toward resolving their trade-related differences at the upcoming G20 Summit.
Oil prices remained weak, while the U.S. dollar, which has benefited from safe-haven flows this year amid increased uncertainty over global trade, rose against its peers.
White House economic adviser Larry Kudlow said on Tuesday that U.S. President Donald Trump will have a dinner meeting with Chinese President Xi Jinping at the upcoming G20 gathering in Argentina and held open the possibility that the two countries would reach a trade deal.
All three major U.S. indexes turned slightly positive after spending much of the session in negative territory, as Kudlow said there is an opportunity to "turn the page" on a trade war with China.
His remarks follow Trump's comments on Monday, when he said he expected to move ahead with raising tariffs on $200 billion in Chinese imports to 25 percent from the current 10 percent and repeated his threat to impose tariffs on all remaining imports from China.
"Until we get more clarification on the trade front, we are going to see some choppy waters," said Ryan Nauman, market strategist at Informa Financial Intelligence, in Zephyr Cove, Nevada.
The Dow Jones Industrial Average rose 55.29 points, or 0.22 percent, to 24,695.53, the S&P 500 gained 2.36 points, or 0.09 percent, to 2,675.81 and the Nasdaq Composite dropped 6.86 points, or 0.1 percent, to 7,075.00.
European markets opened subdued, but dipped as trading progressed. The pan-European STOXX 600 index lost 0.26 percent and MSCI's gauge of stocks across the globe gained 1.17 gained 1.17 percent.
Trade-related worries lifted the greenback. The dollar index , which tracks the U.S. dollar versus the euro, yen, sterling and three other currencies, was up 0.31 percent at 97.373.
"Donald Trump's renewed tariff threats against China have magnetized investors to the U.S. dollar," Lukman Otunuga, a research analyst at broker FXTM, said in a note.
The Federal Reserve should be even more attentive to new economic data as its gradual interest-rate hikes edge it ever closer to a neutral stance, Federal Reserve Vice Chair Richard Clarida said on Tuesday.
Investors will now turn their attention to a speech on Wednesday by Fed Chairman Jerome Powell and minutes from the central bank's Nov. 7-8 meeting, to be released on Thursday, for further clues of how many more times the Fed is likely to raise interest rates.
Sterling slumped against the dollar and the euro as doubts grew about whether British Prime Minister Theresa May can get a Brexit agreement through a divided Parliament.
Treasury yields fell on Tuesday afternoon after $40 billion of new five-year notes were sold to strong demand and on resurgent worries about U.S.-China trade tensions. The benchmark 10-year government note yield was down 1.5 basis points from Monday's close, last at 3.06 percent.
In commodity markets, oil prices, which have come under pressure from an emerging supply overhang and widespread financial market weakness, remained weak.
U.S. crude oil futures settled at $51.56 a barrel, down 7 cents or 0.14 percent, after slipping as low as $50.30 earlier in the session. Brent settled at $60.21, down 27 cents or 0.45 percent.
The stronger dollar weighed on gold, and spot gold slipped 0.77 percent to $1,212.91, a more than one-week low.
Reporting by Saqib Iqbal Ahmed; additional reporting by Amy Caren Daniel in Bengaluru; Editing by Susan Thomas and Dan Grebler