U.S. stocks jumped Friday in another manic day on Wall Street, while the falling value of the U.S. dollar and other swings in financial markets suggested fear is still high about escalations in President Donald Trump’s trade war with China.

The S&P 500 rallied 1.8%, after veering repeatedly between gains and losses, to cap a chaotic and historic week full of monstrous swings. The Dow Jones industrial average went from an early loss of nearly 340 points to a gain of 810 before settling at a rise of 619 points, or 1.6%, while the Nasdaq composite jumped 2.1%.

Stocks kicked higher as pressure eased a bit from within the U.S. bond market.

The yield on the 10-year Treasury topped 4.58% in the morning, up from 4.01% a week ago. That’s a major move for a market that typically measures things in hundredths of a percentage point.

But Treasury yields eased back as the afternoon progressed, and the 10-year yield regressed to 4.48%.

The value of the U.S. dollar also fell again Friday against everything from the euro to the Japanese yen to the Canadian dollar.

Gold, however, lived up to its reputation as a safer haven for investors and saw its price rise to another record.

The shaky trading came after China announced Friday that it was boosting its tariffs on U.S. products to 125% in the latest tit-for-tat increase following Trump’s escalations on imports from China.

All told, the S&P 500 rose 95.31 points Friday to 5,363.36. The Dow climbed 619.05 to 40,212.71, and the Nasdaq composite climbed 337.14 to 16,724.46.

JPMorgan Chase, Morgan Stanley and Wells Fargo all reported stronger profit for the first three months of the year than analysts expected. JPMorgan Chase rose 4%, Morgan Stanley added 1.4% and Wells Fargo lost 1%.

In stock markets abroad, indexes were scattershot around the world. Germany’s DAX lost 0.9%, but the FTSE 100 in London added 0.6% as the government reported the economy, the world’s sixth largest, enjoyed a growth spurt in February. Japan’s Nikkei 225 dropped 3%, while Hong Kong’s Hang Seng climbed 1.1%.

— Associated Press