NEW YORK (Reuters) - U.S. stocks gained ground on Monday at the onset of a heavy earnings week, while European shares inched higher as investors took heart from potential progress in U.S.-China trade talks and increasing geopolitical tensions sent oil prices climbing.

Traders work on the floor at the New York Stock Exchange (NYSE) in New York, U.S., July 16, 2019. REUTERS/Brendan McDermid

Tech pushed Wall Street into positive territory as investors girded themselves for a week of second-quarter results from major industrial and technology companies and eyed the U.S. Federal Reserve’s expected interest rate cut at the end of the month.

The South China Morning Post reported U.S. trade negotiators will likely visit China next week for their first face-to-face talk with Chinese officials since U.S. President Donald Trump postponed a new round of tariffs on Chinese imports after a meeting with his Chinese counterpart in Japan on June 29.

“I don’t give much credence to the (trade) news,” said Stephen Massocca, Senior Vice President at Wedbush Securities in San Francisco. “The chatter will continue, but we won’t see anything substantive this year.”

The Dow Jones Industrial Average .DJI rose 17.7 points, or 0.07%, to 27,171.9, the S&P 500 .SPX gained 8.42 points, or 0.28%, to 2,985.03 and the Nasdaq Composite .IXIC added 57.65 points, or 0.71%, to 8,204.14.

Growing tensions in the Middle East, coupled with worries about Britain leaving the European Union (Brexit) without a deal held world stocks flat.

“Brexit fears can be somewhat alleviated by a friendly European Central Bank, and it appears that’s the way they’re trending,” said Bucky Hellwig, senior vice president at BB&T Wealth Management in Birmingham, Alabama.

The pan-European STOXX 600 index .STOXX rose 0.13% and MSCI's gauge of stocks across the globe .MIWD00000PUS gained 0.05%.

Brent crude prices LCOc1 moved higher on worries that Iran's seizure of a British tanker last week could lead to supply disruptions.

U.S. crude settled at $56.22 per barrel, up 1.06%, while Brent settled at $63.26, gaining 1.26% on the day.

The dollar and euro were little changed as traders looked to policy decisions from the U.S. Federal Reserve and the European Central Bank regarding the pace at which they will cut interest rates, beginning with the ECB on Thursday.

“Clearly the ECB will loosen as will the Fed,” added Massocca. “It’s all been very well-telegraphed by the markets.”

“It’s positive, it’s bullish, but as far as what comes out of those meetings I’m not anticipating any surprises.”

The dollar index .DXY rose 0.14%, with the euro EUR= down 0.12% to $1.1207.

U.S. Treasury yields fell and the yield curve flattened as dovish Fed bank policy supported demand for government debt.

Benchmark 10-year notes US10YT=RR last rose 1/32 in price to yield 2.0482%, from 2.05% late on Friday.

The 30-year bond US30YT=RR last rose 4/32 in price to yield 2.5734%, from 2.578% late on Friday.

Gold held steady, on the heels of a sharp drop in the previous session on lowered rate cut expectations, but the safe-haven metal still found support in the form of global geopolitical uncertainties.

Spot gold XAU= UP 0.08% at $1,425.24 an ounce.

Shipping prices rose on strong vessel demand, with the Baltic Dry Index .BADI jumping to a 5-year high.