NEW YORK — After a day of stalled rallies, the stock market closed out July with its best monthly gain since January.
The Standard & Poor's 500 index ended the month 4.95 percent higher. That's the biggest increase since January, when it rose 5.04 percent. The Dow Jones industrial average also had its best month since January.
Markets surged in July after Fed Chairman Ben Bernanke assured investors that the central bank wouldn't pull back on its stimulus program until the economy was strong enough. The central bank is buying $85 billion of bonds a month to keep down interest rates to encourage borrowing and hiring.
On Wednesday, the Fed reaffirmed its commitment to support the economy in a statement released after the end of a two-day meeting. The central bank slightly downgraded its assessment of U.S. economic growth from "moderate" to "modest," suggesting that it's not about to wind down its stimulus.
Given the market's big gains in July, stocks may struggle to climb further in the coming months, said Phil Orlando, chief equity market strategist at Federated Investors.
"I would not be the least bit surprised to see some modest consolidation," said Orlando.
Stocks started higher Wednesday after the government said that the economy grew at a faster pace in the second quarter than economists had forecast.
The gain was mostly gone by the time the Fed statement came out at 2 p.m. Eastern Daylight Time. The market staged another rally for about an hour after the Fed's announcement, pushing the S&P 500 within two points of breaching the 1,700 level. The market reversed course in the final hour, leaving the S&P flat.