NEW YORK ( TheStreet) -- Stocks closed at multi-year highs Tuesday after a dividend and stock buyback announcement from JPMorgan ( JPM) ignited investor confidence.

The Dow Jones Industrial Average finished up 218 points, or 1.7%, at 13,178, on Tuesday trading at its highest level since May 2008. The S&P 500 was up 24.9 points, or 1.8%, at 1396, having hit its highest level since June 2008. The Nasdaq broke 3000, a level it had failed to close above in 12 years. The index was up 56.2 points, or 1.9%, at 3040. It was the first time that the Dow settled above 13,000 and the Nasdaq closed above 3000 on the same day.

JPMorgan shares were popping 6.9% to $43.32 after the banking giant announced late Tuesday that it was hiking its quarterly common stock dividend by 5 cents to 30 cents a share and that its board had authorized a $15 billion stock buyback program.

The announcement came ahead of the expected announcement of Fed stress test results for the financial sector, which market participants thought would show that U.S. banks were bolstering their balance sheets and reserve requirements. It was expected that a number of banks would be announcing dividend boosts ahead of the results.

The Federal Open Market Committee said Tuesday afternoon that they have decided to keep the federal funds rate at zero to a quarter of a percent at least through late 2014. The central bank cited a moderate expansion of the economy and a subdued outlook for inflation over the medium run, despite recent high oil and gasoline prices. Fed officials acknowledged that labor market conditions have improved and that the unemployment rate has declined notably in recent months. The statement added that household spending and business fixed investment have continued to improve and that there has been improvement in the European situation. However, the housing sector remains depressed. There was no indication of any plans to extend the existing quantitative easing program beyond June.

"The wording of the statement is very close to the January text, although rather than pointing to a decline in business fixed investment the FOMC notes that along with household spending, it has advanced," says Andrew Wilkinson, chief economic strategist at Miller Tabak.

Data released by the Commerce Department Tuesday showed that retail sales in the U.S. rose broadly. Sales rose 1.1% in February, in line with economists' expectations, after jumping 0.6% in January. Compared to a year earlier, sales were up 6.5%. Sales excluding auto sales rose 1.1% in February adding to a 0.6% gain in January.

"What makes this something encouraging is that the strength in sales comes even as gas prices rose by over 8% in February," noted Dan Greenhaus, strategist with BTIG. Greenhaus said that the data suggested economic growth in the first quarter could be "a bit" stronger than estimated. However, "consumption growth in the U.S. is still constrained by the effects of the recession and relatively weak income growth."

In a separate report from the Commerce Department, business inventories rose 0.7% in January, topping expectations for a 0.4% gain by Thomson Reuters. The rise was the largest since October, mainly due to a surge in auto inventories.

On the back of encouraging retail sales data this morning and last Friday's upbeat jobs figures for February, investors will scrutinize the Fed's assessment of the economy. "In January, the FOMC declared that 'the economy has been expanding moderately' -- if that language is downgraded, it would be a dovish sign," wrote economists at Bank of America Merrill Lynch.

Europe's trouble largely took a backseat on Tuesday, with Greece having avoided a disorderly default for now. Germany's DAX was up 1.37% while London's FTSE was up 1.07%. Hong Kong's Hang Seng closed up 1% while the Nikkei Average in Japan gained 0.1% overnight.

In other corporate news, automotive replacement tires company TBC said it would buy auto services provider Midas ( MDS) for $11.50 a share, or about $310 million in cash. Midas shares surged 27.3% to $11.44.

Urban Outfitters ( URBN) reported a 9% rise in fourth-quarter net sales to $731 million. Earnings for the quarter were $39.3 million, or 27 cents a share. Analysts polled by Thomson Reuters, on average, were expecting earnings per share of 29 cents on revenue of $741.35 million. Shares were off 5.4% to $27.91.

Pharmacy benefits managers Express Scripts ( ESRX) and Medco Health ( MHS) will hold off on completing their $29 billion deal, providing antitrust regulators with more time to finish evaluating the deal. Medco shares were rising 2.3% to $69.93; Express Scripts shares rose 1.1% to $54.02.

Google and Facebook are set to begin trial in New Delhi on Tuesday to face charges they didn't censor objectionable content from their sites, The Wall Street Journal reported. If convicted, executives from the companies could face jail time and the companies could face fines, lawyers following the case said, the newspaper reported. Google shares were up 1.2% to $612.04.

Chipmaker Intel ( INTC) is looking into creating an online pay TV service that can be accessed from TV sets, computers and mobile devices, as it looks to get in on the competitive pay-TV business. Intel shares were up 1.5% to $27.39.

Johnson & Johnson ( JNJ) is facing a U.S. government demand to hike its offer by $800 million from an initial proposal to settle a federal civil investigation into marketing of the antipsychotic Risperdal, Bloomberg reported. The stock ticked up 0.3% to $65.27.

Yahoo! ( YHOO) filed a lawsuit against its partner Facebook, accusing the social networking giant of patent infringement. The lawsuit, filed in federal court in San Jose, details patents related to messaging, social networking, privacy, customization and advertising. Yahoo was flat at $14.48.

April oil futures were up 64 cents to $106.98. In other commodities, April gold futures were down $1.60 to $1,698.20 an ounce.

The dollar index was 0.1% higher. The benchmark 10-year Treasury was down 10/32, pushing the yield to 2.073%.

-- Written by Andrea Tse and Chao Deng in New York.

>To contact the writer of this article, click here: Andrea Tse.

>To follow the writer on Twitter, go to http://twitter.com/atwtse .

>To submit a news tip, send an email to: tips@thestreet.com.

If you liked this article you might like

Forecast for S&P 500, Dow Industrials Remains Bullish, These Charts Show

Forecast for S&P 500, Dow Industrials Remains Bullish, These Charts Show

Dow 20,000! It Should Mean Nothing to Investors, but Then Again...

Dow 20,000! It Should Mean Nothing to Investors, but Then Again...

Tradebird Investors Are Bullish on U.S. Stocks but Bearish on the Euro

Tradebird Investors Are Bullish on U.S. Stocks but Bearish on the Euro

Why Home Depot and Boeing Stock Fell Tuesday

Why Home Depot and Boeing Stock Fell Tuesday