BIARRITZ, France/BEIJING (Reuters) - U.S. President Donald Trump on Monday predicted a trade deal with China after positive gestures by Beijing, calming global markets that have been roiled by new tariffs from the world’s two largest economies.

Trump said after a G7 summit of world leaders in Biarritz, France, that he believed China was sincere about wanting to reach a deal, citing what he described as increasing economic pressure on Beijing and job losses there.

Chinese Vice Premier Liu He, who has been leading the talks with Washington, said on Monday that China was willing to resolve the trade dispute through “calm” negotiations and opposed any increase in trade tensions.

Trump cited Liu’s comments as a positive sign, underscoring his seniority, and repeated his assertion that Chinese officials had contacted U.S. trade counterparts overnight and offered to resume negotiations, an assertion that China declined to confirm.

“I think they want to make a deal very badly. I think that was elevated last night. The vice chairman of China came out, he said he wants to see a deal made,” Trump told a news conference with French President Emmanuel Macron.

“The longer they wait, the harder it is to put back, if it can be put back at all. I don’t think they have a choice.”

The trade war between the world’s two largest economies has damaged global growth and raised market fears the world economy will tip into recession.

Macron said an agreement would help dispel uncertainty that has been weighing on global markets. He said Trump had told other G7 leaders that he wanted to strike a deal with China.

The upbeat tones soothed global markets, sending U.S. stocks higher and bolstering the U.S. dollar, which had fallen to a 2-1/2-year low against the Japanese yen earlier.

The S&P 500 gained 31.27 points, or 1.10%, to close at 2,878.38, while the dollar index reversed course to trade higher, last rising 0.4%.

The Chinese yuan, which had fallen to an 11-year low in the onshore market and hit a record low in the offshore market, pared losses. In the offshore market, the Chinese yuan was last down 0.5% at 7.1684 per dollar.

Trump said he was more upbeat about the prospects for an agreement with China than in the recent past, and signaled that Washington could also reach a trade agreement with Brussels that averted car tariffs on car imports from Europe.

The U.S. leader also downplayed the prospect of new U.S. tariffs on autos imported from Japan, after a trade deal reached by the largest and third-largest economies on Sunday.

CONTRADICTION? NO PROBLEM!

Asked whether his contradictory statements on trade matters had fueled global market uncertainty, Trump appeared to defend the practice and said it had served his interests well.

“Sorry,” he said, flatly. “It’s the way I negotiate. It’s done well for me over the years, and it’s doing even better for the country, I think.”

Days after referring to President Xi Jinping as an enemy, for instance, Trump on Monday heaped praise on his Chinese counterpart in separate remarks, alternately calling him a “great leader” and a “brilliant man.”

In Beijing, Foreign Ministry spokesman Geng Shuang said he had not heard that a phone call between the two sides had taken place. China’s Commerce Ministry, which typically releases statements on trade calls, did not respond to a request for comment.

When pressed on whether a call had taken place, Trump emphasized Liu’s comments. U.S. Treasury Secretary Steven Mnuchin said there had been contact between the two sides but declined to say with whom.

Hu Xijin, editor of the state-controlled Global Times newspaper, tweeted: “Based on what I know, Chinese and U.S. top negotiators didn’t hold phone talks in recent days. The two sides have been keeping contact at technical level, it doesn’t have significance that President Trump suggested. China didn’t change its position. China won’t cave to U.S. pressure.”

U.S. President Donald Trump speaks as he meets Egypt's President Abdel-Fattah el-Sisi (not pictured) for bilateral talks during the G7 summit in Biarritz, France, August 26, 2019. REUTERS/Carlos Barria

TARIFFS

The increasingly bitter U.S.-China trade war worsened on Friday with both sides leveling more tariffs on each other’s exports.

Trump announced an additional duty on some $550 billion of targeted Chinese goods, hours after China unveiled retaliatory tariffs on $75 billion worth of U.S. goods.

On Sunday, the White House said Trump regretted not raising the tariffs even more. But Trump also appeared to back off of his threat to order U.S. companies out of China.

Liu, Xi’s top economic adviser, said at a conference in southwestern Chongqing: “We are willing to resolve the issue through consultations and cooperation in a calm attitude and resolutely oppose the escalation of the trade war.

“We believe the escalation of the trade war is not beneficial for China, the United States, nor to the interests of the people of the world.”

The Chinese Foreign Ministry spokesman said China would retaliate if Trump enforced the latest U.S. tariffs.

The two sides were due to meet in September in Washington, but no specific dates have been released.

The United States accuses China of economic sins including intellectual property theft, currency manipulation and forced technology transfer by U.S. companies to their Chinese partners as a requirement for doing business in China. China denies the U.S. allegations.

Beijing and Washington were close to a deal last spring but U.S. officials said China backed away from an agreed text over a reluctance to change laws to address U.S. complaints.

The trade war has affected businesses all over the world and disrupted supply chains. Trump has urged U.S. companies to move their operations out of China, but it was not clear how or whether his efforts to order such a move would work.

He said on Monday that if a deal emerged, U.S. companies should stay in China or leave if it did not.

Liu said: “We welcome enterprises from all over the world, including the United States, to invest and operate in China.”

Mnuchin said Trump could order companies out of China under the International Emergency Economic Powers Act if he declared a national emergency.

Macron and German Chancellor Angela Merkel, who met with Trump at the G7, both said it was in everyone’s interest for China and the United States to reach a deal. Germany’s economy, which is heavily dependent on exports, is facing a recession, according to some economists.