Wall Street stocks finished a topsy-turvy week on a sunny note Friday, rallying after strong Apple earnings following a down day in Europe.

After opening lower, stocks pushed into positive territory most of the day before rising buoyantly in the final hours of trading, lifting all three major indices into the black for the week.

It was the latest midday reversal in a week that has seen early rallies peter out and torrid selling give way to sudden bargain-hunting.

Blowout earnings from Apple lifted sentiment, with the tech giant surging 7.0 percent after reporting a record $124 billion in quarterly revenues driven by strong sales of iPhones and other gadgets and services.

The S&P 500 finished up 2.4 percent, enabling it and the other two major US indices to finish the week in the black despite some bruising stretches in recent days.

Art Hogan, chief strategist at National Securities, described the dynamic as a "tug of war" between worries about tightening monetary policy on one side and recognition of fairly good economic data and earnings on the other.

Commerce Department data showed personal consumption prices rose 0.4 percent last month, in line with analysts' expectations and less than the month-on-month growth in the prior two months.

The report came on the heels of a better-than-expected US growth reading on Thursday.

"Wall Street is finishing the trading week wanting to believe that the US growth outlook is still there for 2022 and that the bull case will still be there once we get past this last inflation surge and first round of Fed rate hikes," said Oanda's Edward Moya.

In Europe, Frankfurt and Paris ended the day in the red, even though France posted its strongest annual economy in more than 50 years.

But the German economy shrank by 0.7 percent in the fourth quarter, and finished the year with 2.8 percent growth.

"After production grew in the summer despite bottlenecks and material shortages, the recovery of the German economy was halted due to the fourth wave of the coronavirus and stricter health restrictions," the federal statistics agency Destatis said.

"With this weak fourth quarter, the likelihood of Germany being in an outright recession at the turn of the year has increased," said Carsten Brzeski, head of macro at bank ING.

Any recession would be "short lived", however, Brzeski said, saying he expected the economy to "stage an impressive comeback in the spring".

- Key figures around 2150 GMT -

New York - Dow: UP 1.7 percent at 34,725.47 (close)

New York - S&P 500: UP 2.4 percent at 4,431.85 (close)

New York - Nasdaq: UP 3.1 percent at 13,770.57 (close)

London - FTSE 100: DOWN 1.2 percent at 7,466.07 (close)

Frankfurt - DAX: DOWN 1.3 percent at 15,318.95 (close)

Paris - CAC 40: DOWN 0.8 percent at 6,965.88 (close)

EURO STOXX 50: DOWN 1.2 percent at 4,1376.91 (close)

Tokyo - Nikkei 225: UP 2.1 percent at 26,717.34 (close)

Hong Kong - Hang Seng Index: DOWN 1.1 percent at 23,550.08 (close)

Shanghai - Composite: DOWN 1.0 percent at 3,361.44 (close)

Euro/dollar: UP at $1.1158 from $1.1145

Pound/dollar: UP at $1.3389 from $1.3383

Euro/pound: DOWN at 83.16 pence from 83.28 pence

Dollar/yen: DOWN at 115.24 yen from 115.37 yen

Brent North Sea crude: UP 0.8 percent at $90.03 per barrel

West Texas Intermediate: UP 0.2 percent at $86.82 per barrel