Stocks Rally Over 1.5% in April, S&P 500 Hits Fresh All-Time High

Stocks reversed their early losses to finish higher on the final day of the month, with all three major averages posting robust gains for April, despite some weak corporate earnings and mixed economic data.

The Dow closed higher for the fifth-straight month and marked the best start of the year through the first four months since 1999. Meanwhile, the S&P 500 and Nasdaq is logged their sixth-straight month of gains. The S&P logged the best start of the year since 1998.

(Read More: After-Hours Buzz:DWA, WU, QCOR & More)

Symbol
Name
Price
 
Change
%Change
DJIA
---
NASDAQ
---
S&P 500
---

The Dow Jones Industrial Average eked out a gain of 21.05 points to close at 14,839.80, ending higher for the 16th straight Tuesday. IBM and Microsoft led the blue-chip gainers, while Pfizer tumbled.

The S&P 500 rose 3.96 points to finish at 1597.57, hitting a new all-time high. The Nasdaq added 21.77 points to end at 3,328.79, closing at a new 12.5-year high. The CBOE Volatility Index (VIX), widely considered the best gauge of fear in the market, ended below 14.

For the month, the Dow rallied 1.79 percent, the S&P 500 jumped 1.81 percent, and the Nasdaq climbed 1.88 percent. Microsoft was the biggest monthly gainer on the Dow, while Hewlett-Packard sagged.

Telecoms and utilities were the best sector performers in April, while energy and industrials lagged.

(Read More: 'Rotate in May' Could Be the Real Spring Market Play)

"I've been warning people about a correction...but pullbacks are still being viewed as buying opportunities," said Randy Frederick, managing director of active trading at derivatives at the Schwab Center for Financial Research. "I remain bullish overall for 2013, but we're still likely to see a pullback in the second quarter. Stay long the market, but continue to hedge on the downside."

(Read More: Global Concerns? Bet on Small Caps: Goldman Sachs)

Among earnings, Pfizer declined after the drugmaker reported quarterly results that fell short of Wall Street expectations, citing the stronger dollar and the spin-off of its animal health unit Zoetis. The company also lowered its full-year outlook.

U.S. Steel dipped after the steelmaker posted a quarterly loss as its sales fell more than 10 percent. And Cummins reported quarterly results that missed forecasts. Shares erased most of their earlier losses to close flat.

Pitney Bowes plunged to lead the S&P 500 laggards after the digital communication software maker posted disappointing earnings and also forecast full-year profit largely below estimates.

BP gained after the oil giant announced a sharp rise in earnings, with the sale of its Russian venture TNK-BP offsetting a fall in oil and gas production.

Major European banks including Deutsche Bank and UBS both posted better-than-expected first quarter profits. However,Anheuser-Busch InBev, the world's largest brewer, cut its outlook for full-year growth in its second-biggest market, Brazil, after earnings fell short of expectations.

Dreamworks Animation is scheduled to post earnings after the closing bell.

To date, a little over 60 percent of S&P 500 companies have posted quarterly results, with 69 percent of firms topping earnings expectations, according to the latest data from Thomson Reuters. If all remaining companies report earnings in line with estimates, earnings will be up 4 percent from last year's first quarter.

Meanwhile, only 44 percent companies have beaten revenue forecasts. On average, sales have come in 1 percent below estimates.

Apple rallied near session highs after the tech giant launched the biggest-ever non-bank bond issue at $17 billion to help pay for the $100 billion capital return program for shareholders.

(Read More: Apple as Top Yield Play: Dan Niles)

Best Buy surged to lead the S&P 500 gainers after the consumer electronics retailer said it is selling its stake in a joint venture with Europe's Carphone Warehouse, in the latest sign that the retailer is retreating from its European expansion.

On the economic front, single-family home prices jumped in February, posting their best annual gain since in seven years, according to the S&P/Case Shiller composite index of 20 metropolitan areas. And consumer confidence climbed in April, according to the Conference Board, lifted by a better outlook for the job market.

Meanwhile, a gauge of manufacturing activity in the Midwest showed a slight contraction in April. And labor costs edged up in the first quarter, pointing to benign wage inflation, according to the Labor Department.

In macroeconomic news, expectations are high for central banks to continue supporting the global economy with monetary easing, ahead of the Federal Reserve's two-day meeting later on Tuesday and the European Central Bank's (ECB) policy review on Thursday.

(Read More: Wall Street Sees No End to QE Until at Least 2014)

"Given the fact that QE3 is still in place, the market has potential to outperform what we had already thought," said Frederick, adding that barring any unexpected events, the market is likely to continue to rally above current levels.

At the end of the week, the government is scheduled to release its widely-watched monthly employment report, which is expected to show 150,000 new non-farm jobs were added in April, according to an estimate from Reuters.

(Read More: The Economy May Stink,but the Market Doesn't Care)

—By CNBC's JeeYeon Park (Follow JeeYeon on Twitter: @JeeYeonParkCNBC)

Coming Up This Week:

WEDNESDAY: Mortgage applications, ADP employment report, PMI manufacturing report, ISM mfg index, construction spending, oil inventories, FOMC mtg announcement, auto sales, McGraw-Hill shareholder mtg, New York Times shareholder mtg, PepsiCo shareholder mtg, JCPenney Martha Stewart shops open; Earnings from Comcast, MasterCard, Merck, Time Warner, CVS Caremark, Chesapeake Energy, Clorox, Humana, Facebook, Visa, Allstate, CBS, Marriott, MetLife, Yelp
THURSDAY: Challenger job-cut report, ECB announcement, international trade, jobless claims, productivity & costs, natural gas inventories, Fed balance sheet/money supply, DirecTV shareholder mtg, UBS shareholder mtg, UPS shareholder mtg, Verizon shareholder mtg; Earnings from GM, Royal Dutch Shell, Sanofi, Kellogg, Beazer Homes, AIG, Gilead Sciences, Kraft Foods
FRIDAY: Nonfarm payrolls, factory orders, ISM non-mfg index, AOL shareholder mtg, Blackstone analyst mtg; Earnings from Berkshire Hathaway

More From CNBC.com: