The benchmark S&P 500 index and the Nasdaq edged upward to snap a two-day losing streak on Friday as positive corporate results offset lingering scepticism over the US and China reaching a trade deal before the March 1 deadline.

Shares of Coty, Mattel and Motorola Solutions jumped after the companies reported better-than-expected quarterly results. In addition, shares of Electronic Arts, which plunged on Wednesday after the company’s quarterly results, surged after the videogame publisher said that its game Apex Legends had attracted 10 million players in three days. Electronic Arts and Motorola Solutions were among the top boosts to the S&P 500.

Earlier, US stocks dragged as trade concerns continued to weigh on investor sentiment. President Donald Trump said on Thursday he did not plan to meet Chinese President Xi Jinping before the deadline set for reaching an agreement. US Trade Representative Robert Lighthizer and Treasury Secretary Steven Mnuchin will travel to Beijing for principal-level meetings on 14-15 February, a statement from the White House said. As the session wore on, Wall Street’s major indexes regained lost ground.

The Dow Jones Industrial Average fell 63.2 points, or 0.25 per cent, to 25,106.33, the S&P 500 gained 1.83 points, or 0.07 per cent, to 2707.88 and the Nasdaq Composite added 9.85 points, or 0.14 per cent, to 7298.20. For the week, the Dow added 0.17 per cent, the S&P 500 rose 0.07 per cent, and the Nasdaq gained 0.47 per cent.

The S&P 500 has risen more than 15 per cent from 20-month lows in December, spurred by a dovish Federal Reserve and largely positive fourth-quarter earnings, as well as hopes for an eventual US-China trade deal. Of the S&P 500 companies that have reported quarterly results, 71.5 per cent have beaten profit estimates, according to IBES data from Refinitiv.