NEW YORK (TheStreet) -- Stocks were narrowly mixed on Tuesday after a fresh plunge on China's stock market and as Wal-Mart (WMT) - Get Walmart Inc. Report missed earnings estimates. 

The S&P 500 was down 0.02%, the Dow Jones Industrial Average was up 0.04%, and the Nasdaq slid 0.18%.

China's Shanghai Composite plummeted more than 6%, despite the People's Bank of China's efforts to stem capital outflows in the wake of its weakened currency. The Chinese central bank injected 120 billion yuan ($18.8 billion) into the market in its biggest one-day injection in just over a year-and-a-half. 

Chinese home prices continued to fall, though appeared to show signs of stabilizing in July. Prices fell 3.7% from last year's July, though increased 0.3% from June. The reading was the third consecutive month-on-month gain. Investors have worried over China's economy as it faces weakened manufacturing activity and slowing growth.

Wal-Mart was weighing on markets after falling more than 2% on missed profit estimates in its second quarter. The world's largest retailer earned $1.08 a share, 4 cents below estimates, while revenue of $120.2 billion rose just 0.1% from a year earlier. Comparable-store sales increased 1.5%. Full-year earnings guidance was revised down to as high as $4.70 a share after a previous range of $4.70 to $5.05 a share.

The latest sign of a robust recovery in the U.S. housing market helped to alleviate some of the pressure on domestic markets. Construction on U.S. houses in July climbed to the highest level since before the recession, up 0.2% to an annual rate of 1.21 million in July, according to the Commerce Department. Economists had expected a seasonally adjusted reading of 1.19 million. Starts for June also were upwardly revised to 1.2 million from 1.17 million.

TheStreet Recommends

"With affordability remaining high, mortgage rates still low, and labor market activity accelerating, we expect the housing market trajectory to continue gradually gaining momentum in the months ahead," said Cheng Chen, U.S. macro and rates strategist at TD Securities. 

Home Depot (HD) - Get Home Depot, Inc. (HD) Report climbed 1.9% after a solid second-quarter report. The home-improvement chain reported sales of $24.8 billion, up 4.2% from a year earlier, while U.S. comparable-store sales jumped 5.7%. The company expects full-year sales growth between 5.2% and 6%.

Urban Outfitters (URBN) - Get Urban Outfitters, Inc. Report  was slightly lower after reporting a mixed quarter. The retailer earned 52 cents a share, 3 cents above estimates, while revenue of $867.46 million fell short by $14 million. Comparable-store sales rose 4% over the quarter, driven by a 14% jump at its Free People brand.

Dick's Sporting Goods (DKS) - Get Dick's Sporting Goods, Inc. Report added 5.3% after reporting a mixed quarter with earnings coming in above estimates, while sales fell short. Same-store sales rose 1.2%, driven by a 1.5% gain at Dick's stores which offset a 2.9% decline at Golf Galaxy. Third-quarter guidance of 45 cents to 48 cents a share was as analysts had expected.

TJX (TJX) - Get TJX Companies Inc Report jumped more than 4% after beating estimates on the top- and bottom-lines. Comparable-store sales rose 6% with a 4% increase at Marmaxx and 9% climb at HomeGoods. Full-year profit guidance came in short, though, with a range of $3.24 to $3.28 a share below estimates of $3.30.

American Apparel (APP) - Get Applovin Corp. Report looked to be in trouble after its most recent quarter's earnings report showed only $11.2 million in cash. The retailer also reported a net loss of 11 cents a share on sales of $134.39 million, down 17% from a year earlier. 

National Penn Bancshares (NPBC) shot nearly 17% higher on news BB&T (BBT) - Get BB&T Corporation Report had agreed to an acquisition worth $1.8 billion. The purchase would allow North Carolina-based BB&T to expand its presence in the mid-Atlantic region. The deal is set to close mid-2016.

Royal Dutch Shell (RDS.A) shares were on watch after the company received its final federal permit to begin drilling in the Arctic near the Alaska coast after acquiring a device that could stop a well blowout. Shell plans to drill two wells in the region by late September.