Stocks rose on Tuesday as both the Dow Jones Industrial Average (DJINDICES:^DJI) and the S&P 500 (SNPINDEX:^GSPC) indexes finished higher by over 0.5%.

Today's stock market

Index

Percentage Change

Point Change

Dow

0.58%

118.95

S&P 500

0.60%

14.22

Data source: Yahoo! Finance.

Financial stocks saw some of the heaviest trading, yet the popular Financial Select Sector SPDR ETF (NYSEMKT:XLF) still trailed the broader market slightly with a 0.5% increase. Gold prices held steady, but that didn't stop the highly leveraged bet on the precious metal, Direxion Daily Gold Miners Bull 3X ETF (NYSEMKT:NUGT), from falling 2%.

As for individual stocks, Home Depot (NYSE:HD) and Dillard's (NYSE:DDS) both made large moves following the retailers' respective quarterly earnings announcements.

Home Depot beats expectations

Home Depot shares pushed further into record territory after the home improvement giant trounced its own quarterly revenue and profit forecasts. Comparable-store sales improved by 6% thanks to a solid mix of increased customer traffic and higher spending per visit. That was good enough to raise comps by 5.6% for the full year, beating executives' target of 4.9%.

Earnings also came in ahead of guidance by spiking 18% to $6.45 for the year as opposed to the 16% increase management forecast in mid-November. CEO Craig Menear cited "a healthy housing market and strong customer demand" for helping produce the surprising gains.

A man shopping for lumber.

Image source: Getty Images.

The retailer continued to set itself apart from rivals by posting stellar e-commerce figures. Sales rose 19% in that category -- up from a 17% increase in the prior quarter.

Home Depot's results keep it on track to meet its long-term target of passing $100 billion of annual revenue by 2018. And, because profitability is expanding at the same time, the retailer is flush with excess cash. In response, management announced plans to deliver a large portion of those funds back to shareholders as it raised Home Depot's dividend by 29% while increasing its targeted payout ratio to 55% of earnings from 50%.

Dillard's is hit by a customer traffic slump

Dillard's stock slumped 8.3% following disappointing earnings results. Declines in shopper traffic at malls contributed to a 6% drop in comparable-store sales over the key holiday period, the retailer said. All sales categories shrank, with home and furniture and shoes faring the worst.

Inside a shopping mall.

Image source: Getty Images.

The good news is that the company held the line on prices, and so gross profit margin improved slightly. Unfortunately for the business, though, increased expenses overwhelmed that tiny improvement to send profitability far lower. Net profit margin for the fiscal year dipped to 2.7% of sales from 4.1% a year ago.

"Our operating results reflect another quarter of mall traffic declines from continued retail industry challenges," CEO William Dillard said in a press release. In response, the company is boosting its branding efforts and pouring more cash into improving the shopper experience both online and in stores.

A quick sales rebound doesn't look likely if shoppers continue opting for online purchases over a trip to the mall. However, with nearly $350 million in cash on the books, Dillard's at least has some flexibility to make investments in the business while continuing to return cash to shareholders through aggressive stock repurchase spending.

Demitrios Kalogeropoulos owns shares of Home Depot. The Motley Fool recommends Home Depot. The Motley Fool has a disclosure policy.