NEW YORK (AP) -- U.S. stocks rose Thursday as banks resumed their steep upward climb and retailers moved higher. Federal Reserve Chair Janet Yellen emphasized that the Fed plans to raise interest rates, which will help banks make more money from lending.
Stocks started the day with small gains and moved higher following Yellen's testimony to Congress. Banks once again marched higher as investors cheered the latest indication that interest rates will rise from their current ultra-low levels. Retailers also rose after strong earnings from Best Buy, while food and household goods makers struggled after weak results from Wal-Mart and J.M. Smucker.
Almost all of the S&P 500's gains since the presidential election have gone to financial stocks. They lagged the market for much of this year, but they're now trading at their highest levels since May 2008, months before the financial crisis peaked.
Investors hope banks will benefit from higher interest rates, faster economic growth and lighter regulation under President-elect Trump.
"I wouldn't expect we're going to see the entire repeal of Dodd-Frank, but we could certainly see some changes that are positive for the financial services sector," said Kate Warne, an investment strategist for Edward Jones.
The Dow Jones industrial average added 35.68 points, or 0.2 percent, to 18,903.82. The Standard & Poor's 500 index rose 10.18 points, or 0.5 percent, to 2,187.12. The Nasdaq composite added 39.39 points, or 0.7 percent, to 5,333.97. The Dow has set several records since the election, while the S&P 500 and Nasdaq are close to records they set a few months ago.
Fed Chair Yellen told Congress that the economy is improving and added that that if the Fed keeps waiting now and raises rates too quickly later, that increases the risk of a recession.
Investors already expected the Fed to raise interest rates when it meets in mid-December, and they felt Yellen's comments confirmed that higher rates are coming.
Bond prices slipped. The yield on the 10-year U.S. Treasury note rose to 2.29 percent from 2.22 percent. Bond yields rise when investors expect higher interest rates and inflation.
Bank of America gained 33 cents, or 1.7 percent, to $20.08 and PNC Financial Services climbed $3.09, or 2.9 percent, to $110.60.
Greater sales of mobile phones and increased online sales helped electronics retailer Best Buy post a strong third quarter, and the company forecast a larger fourth-quarter profit than analysts had expected. Its stock climbed $5.54, or 13.7 percent, to $45.99 and hit a six-year high.
Other retailers also rose. Home Depot recovered some recent losses and added $3.60, or 2.9 percent, to $128.93. Amazon also gained ground as Wal-Mart struggled. It picked up $9.91, or 1.3 percent, to $756.40.
"Instead of spending in traditional ways, consumers have decided to spend their additional dollars in technology and online shopping," Warne said.
Wal-Mart announced disappointing sales in its third quarter. The retailer's profit also fell as it invested more money in its stores and its online business. The stock lost $2.20, or 3.1 percent, to $69.19 Warehouse club operator Costco and grocery store chain Kroger both took small losses as well.
Jam and jellies maker J.M. Smucker disclosed weak sales and its stock shed $5.10, or 3.9 percent, to $124.85. Tyson Foods fell $2.32, or 3.4 percent, to $66.70.
Cisco Systems fell after its earnings forecast disappointed Wall Street. The seller of routers, switches, software and services forecast a smaller-than-expected profit for its second fiscal quarter. That canceled out a strong first-quarter report. The stock gave up $1.52, or 4.8 percent, to $30.05.
Oil refining company Tesoro will buy Western Refining for $37.30 a share in stock, a deal the companies valued at $4.1 billion. The stock closed at $30.50 on Wednesday, and it jumped $7.05, or 23.1 percent, to $37.55. Tesoro shares rose 82 cents, or 1 percent, to $86.56.
Higher interest rates also mean a stronger dollar. The dollar climbed to 109.89 yen from 109.15 yen. The euro fell to $1.0626 from $1.0681. The ICE U.S. dollar index continued to rise. It's at its highest level in 13 years.
Oil prices gave up a small gain and turned lower. Benchmark U.S. crude slid 15 cents to $45.42 a barrel in New York. Brent crude, which is used to price international oils, slipped 14 cents to $46.49 a barrel in London. Energy companies lagged the market after big gains earlier this week.
In other energy trading, wholesale gasoline rose 2 cents to $1.34 a gallon. Heating oil rose 1 cent to $1.45 a gallon. Natural gas fell 6 cents, or 2.2 percent, to $2.70 per 1,000 cubic feet.
Gold fell $7 to $1,216.90 an ounce and silver lost 16 cents to $16.77 an ounce. Copper rose 2 cents to $2.49 a pound.
The FTSE 100 index of leading British shares added 0.7 percent and the CAC 40 in France rose 0.6 percent. Germany's DAX gained 0.2 percent. Japan's Nikkei 225 barely moved and the Hang Seng index in Hong Kong eased 0.1 percent. The Kospi in South Korea inched higher.