NEW YORK — The Dow logged its best start to the year in almost two decades.
Stocks rallied in the first week of the year after U.S. lawmakers reached a deal to avoid the "fiscal cliff," and then pushed higher toward record levels as optimism about the housing market recovery grew. Decent company earnings for the fourth quarter and an improving job market also helped lift markets.
The Dow Jones industrial average ended the month up 5.8 percent, its strongest January since 1994, according to S&P Capital IQ data. The Standard & Poor's 500 finished the month 5 percent higher, its best start to the year since 1997.
"There's not a whole lot of bears left here," said Jeff Hirsch, the editor of the Stock Trader's Almanac, adding that the market may struggle to gain further in February.
Stocks have also benefited as investors have put money into equities in January. By one measure, the monthly flow into stock funds was the largest in nine years.
About $51 billion in net deposits was moved into stock funds and so-called hybrid funds, which invest in a mix of stocks and bonds, consultant Strategic Insight said Thursday. That's the most since $56 billion flowed in during January 2004.
On Thursday, stocks drifted lower as investors digested more earnings results and reports on the economy.
The Dow Jones industrial average fell 49 points to 13,860.58. The S&P 500 dropped 4 points to 1,498.11 and the Nasdaq composite was little changed at 3,142.13.
The Dow is just 304 points from its all-time high.
Among companies reporting earnings Thursday, UPS Inc., the world's biggest package-delivery company and an economic bellwether, fell 2.4 percent to $79.29. The company's fourth quarter was hurt by weak global trade, and it forecast 2013 results below expectations.
January's rally started to slow Wednesday after a report showed that the economy unexpectedly contracted in the fourth quarter of last year.
Stocks have gained against a backdrop of low borrowing costs and a slow, but steady, economic recovery. However, the market may struggle to build on those gains in the immediate future as traders and investors turn attention back to Washington, said Ernie Cecilia, chief investment officer at Bryn Mawr Trust.1 comment on this story
The budget deal struck at the start of the year dealt with taxes, but across-the-board spending cuts were pushed back from Jan. 1 to March 1. While a showdown over the nation's borrowing limits appears to have been put off, lawmakers have yet to agree on how best to reduce government spending. Those negotiations could increase stock market volatility, Cecilia said.
More government reports Thursday also gave investors a better picture of the health of the economy.
The number of Americans seeking unemployment aid rose sharply last week but remained at a level consistent with moderate hiring.
Investors will look for further clues about the jobs market's strength today, when the closely followed monthly nonfarm payrolls report is published.