New York (CNN Business) The Dow and the broader stock market finished a week of topsy-turvy trading in the red.

Even though theturned positive in the last hour of trading, it couldn't hold onto its gains, closing down 91 points, or 0.3%.

All three indexes also ended the week lower, with the Dow dropping 0.8% since last week. By Thursday's close, the S&P and the Nasdaq had retraced their loses from earlier in the week, but the Dow was still lagging behind. Monday was the worst day of the year for the three stock benchmarks.

Weakness in the European economy and a still-escalating trade war sent bond yields down once again — and stocks along with them for most of Friday.

President Donald Trump said Friday the United States had no choice but to take stern actions against China.

"We're not ready to make a deal, but we'll see what happens," the president said.

Trump also said the United States is "not doing business with Huawei." The White House has reportedly been considering an extension of its ban on Huawei

China priced the yuan lower once again Friday, and the trade war has no end in sight.

Stocks were in the red and extended losses after Trump's comments.

The 10-year US Treasury yield is trending lower again. The US government bond yield dropped to a three-year low Wednesday as investors bought bonds as a safety investment amid the market turmoil. This change in risk sentiment put pressure on stocks. Yields rebounded Thursday.

On the economic data front, the US producer price index for July advanced 0.2%, in line with expectations and flat at 1.7% on the year. This measure of inflation still tracks below the Federal Reserve's target rate of 2% and reflects a slowing down in manufacturing activity amid weaker global demand.

In Europe, stocks closed in the red after the UK economy contracted for the first time since 2012 in the second quarter, and Italy's Deputy Prime Minister Matteo Salvini called for fresh elections.