U.S. stocks closed up Friday as possible stimulus measures in Europe and rising U.S. bond yields fired up Wall Street's risk appetite.

Continue Reading Below

Despite the day's gains, the three major American equity averages posted their third consecutive losing week.

Markets were anticipating the European Central Bank will cut rates in September and resume a bond-buying program, according to Reuters. And add Mexico as the latest country to cut interest rates overnight.

The major European equity averages closed higher on expectations of monetary stimulus.

In the U.S. industrial shares helped lead gainers. Deere & Co., which missed quarterly profit estimates, said it was beginning a review of its costs in a bid to reduce expenses and boost its bottom line. Investors rewarded the company by bidding up its shares.

Ticker Security Last Change Change % DE DEERE & COMPANY 219.25 +2.73 +1.26% GE GENERAL ELECTRIC COMPANY 6.11 +0.06 +0.99% WAB WABTEC 60.63 +0.26 +0.43%

General Electric shares rose as Chief Executive Officer Larry Culp bought nearly $2 million worth of shares a day after recording their biggest one-day percentage fall in 11 years.

Shares of Wabtec, a rail and transportation conglomerate, jumped.

Wall Street's risk-on mood lifted bond yields, which boosted bank stocks. The yield on the 10-year Treasury jumped to 1.55 percent. Treasury yields move in the opposite direction of their prices.

Ticker Security Last Change Change % BAC BANK OF AMERICA CORP. 23.49 +0.15 +0.64% C CITIGROUP INC. 42.02 -0.17 -0.40% JPM JP MORGAN CHASE & CO. 93.47 +0.81 +0.87% WFC WELLS FARGO & COMPANY 23.64 +0.32 +1.37%

On the economic front on Friday, the Commerce Department said U.S. homebuilding fell for a third straight month in July amid a steep decline in the construction of multi-family housing units, but permits rose creating optimism. Housing starts dropped 4 percent to a seasonally adjusted annual rate of 1.191 million units last month.

Investors have suffered whiplash this week after the U.S. yield curve -- the difference between yields on the U.S. 10-year and 2-year Treasury bonds -- inverted for the first time since 2007. It has historically been an accurate forecaster of a coming recession.

The major U.S. stock indexes spent much of the day reacting to big moves in U.S. government bond yields, which fell sharply in the early going, fluctuated for much of the day, and then recovered some of their decline by mid-afternoon.

Stocks are down more than 2.4 percent this week and are on course for their third consecutive losing week.

The U.S.-China trade war has hammered American manufacturers and roiled global financial markets with fears that the world's largest economy could slip into a recession. Yet most analysts expect the U.S. economy to power through the rough patch, at least in the coming months, on the strength of solid consumer spending and a resilient job market.

CLICK HERE TO READ MORE ON FOX BUSINESS

Japan's Nikkei rebounded from early losses to gain 0.1 percent, Hong Kong's Hang Seng added 0.9 percent and China's Shanghai Composite gained 0.3 percent.

The Associated Press contributed to this article.