Updated 4:32 p.m. EDT
Investors barreled into stocks for a second day as hopes grew that corporate profits will strengthen as the global economy recovers.
The Dow Jones industrial average gained 132 to close at 9,731. The Dow is up 244 points in two days. The Standard & Poor's 500 index rose 14 to 054 and the Nasdaq composite index gained 35 to finish at 2,103.
Four stocks rose for every one that fell on the New York Stock Exchange. Volume totaled 1.2 billion compared with 1.1 billion Monday.
Investors' latest show of confidence came as Australia became the first major country to raise interest rates. The move signals that policymakers see the country's economy as strong enough to withstand higher borrowing costs. That touched off hopes that other economies are strengthening.
Australia's central bank governor said it was time to begin reducing stimulus provided by low interest rates and that the risk of major economic contraction in the country was over. The dollar hit a 14-month low against the Australian currency.
At ain the U.S. last month, leaders of major developing and industrialized nations agreed to keep their stimulus efforts - which include increased government spending and low interest rates - largely in place for now to avoid derailing still-fragile recoveries.
But Australia, a G-20 member, has weathered the worst global downturn in decades better than other developed countries. It avoided slipping into recession - helped by stable banks, demand from China for iron ore and other minerals, and the government's 42 billion Australian dollars ($37 billion) of stimulus spending.
Australia's decision also dented demand for the U.S. dollar, which, in turn, raised commodity prices. Energy and materials stocks jumped as oil rose and gold reached a record high.
The upbeat tone among investors is a departure from recent weeks when disappointing reports on unemployment, manufacturing and consumer sentiment gave stocks their first back-to-back weekly drops since July. Investors seem inclined right now to grab hold of any good news they hear, and their shifting sentiment has led to some mild volatility including the surge upward this week.
The market's climb comes as some investors ratchet up their expectations for corporate earnings reports for the July-September quarter. Yum Brands Inc., parent of the Taco Bell, KFC and Pizza Hut chains, reports results after the closing bell, and aluminum producer Alcoa Inc. reports on Wednesday.
Phil Orlando, chief equity market strategist at Federated Investors in New York, said investors are raising their expectations for overall earnings because few companies have issued profit warnings since the quarter's end.
"We've gone through confessional season and we haven't had a peep from anyone," he said, referring to companies that would try to prepare investors for disappointment. "It's just crickets and tumbleweed throughout Wall Street because companies are going to beat."
Stocks jumped Monday on news that the U.S. service industry grew for the first time in a year. Upbeat comments about the nation's largest banks also drew buyers, as did a drop in the dollar.
Bond prices slipped, sending the yield on the benchmark 10-year Treasury note up to 3.26 percent from 3.23 percent late Monday.
Crude oil rose 47 cents to settle at $70.88 per barrel on the New York Mercantile Exchange, while gold rose above $1,040 an ounce.
Stock investors cheered the drop in the dollar because it boosts corporate profits by making U.S. goods cheaper to overseas buyers. Companies can also get a bump in profits when they convert sales made in foreign currencies to dollars.
The dollar's slide added to expectations for corporate profit reports.
"The reality is that a weak dollar right now is beneficial to us because it's driving export volumes to foreign economies that are doing better and it's going to result in currency gains," Orlando said.
The market lost about 6 percent in recent weeks, following a huge rally of 50 percent since March, as investors questioned whether they had been too quick to place bets on a rebound in the economy. The same concerns emerged from mid-June to mid-July, when stocks fell 7 percent before companies turned in surprisingly strong profits.
Metals and mining and energy stocks rose Tuesday as commodities surged.
Alcoa rose more than 3 percent, Barrick Gold Corp. gained more than 5 percent, and New Gold Inc. shot up more than 6 percent.
David Kelly, chief market strategist at J.P. Morgan Funds, said the stock market has room to advance further despite its already huge climb since March. Stocks are still down from their peak two years ago.
Kelly said the long-term move in the stock market should be upward as the economy improves and problems like unemployment slowly get better, a process that he expects to take years.
"As the economy gradually pulls itself back together and we march back to full employment the stock market will reflect that," Kelly said.