Stocks posted strong gains on Tuesday, Nov. 21, as retail earnings and strength in the tech sector shored up some optimism ahead of the Thanksgiving holiday and Black Friday.

The Dow Jones Industrial Average gained 135 points, or 0.58%. The S&P 500 Index rose 14 points, or 0.54%. The Nasdaq increased 56 points, or 0.83%, to reach a fresh intraday record. 

After stocks rebounded on Monday, Nov. 20, following two weeks of losses, investors now face a shortened Thanksgiving week light on economic events. Markets will be closed on Thursday, Nov. 23, for Thanksgiving, and will open for a half-day of trading on Friday, Nov. 24.

Federal Reserve Chair Janet Yellen is scheduled to speak at New York University at 6 p.m. Tuesday. Yellen submitted her resignation to President Donald Trump on Monday, announcing she would step down from the Federal Reserve board when her successor, Jerome Powell, is sworn in as Fed chairman in February.

Investors will listen carefully for any indications Yellen might give of upcoming interest rate increases. The market has priced in with near certainty that the Fed will hike rates at its next meeting on Dec. 12-13.

Existing home sales for October totaled 5.48 million, increasing 2% and topping Wall Street's consensus estimate of 5.43 million. Sales are now at their strongest pace since June. The median price of a U.S. home last month was $247,000, up from $234,100 in October 2016. The price increase marked the 68th-straight month of year-over-year gains, according to the National Association of Realtors. 

Tax reform remains a key concern for Wall Street, but with no scheduled legislative events during this shortened trading week retail and tech earnings have somewhat taken the spotlight.

Lowe's Cos. ( LOW) posted third-quarter adjusted earnings of $1.05 a share, 3 cents ahead of analysts' forecasts. Sales of $16.77 billion also beat estimates, as did same-store sales, which jumped 5.7% in the quarter. Lowe's shares fell 1.1% on Tuesday.

Urban Outfitters Inc. (URBN)  posted third-quarter earnings and revenue that bested analysts' forecasts, sending shares higher Tuesday. The parent company of Free People and Anthropologie saw sales in the quarter rise 3.5% to $893 million, a record for the retailer. Same-store sales in the period rose 1%. Urban Outfitters stock gained 1.2%.

The two earnings beats came as a welcome surprise for the retail sector, which has lagged all year as e-commerce threats from Amazon.com Inc. (AMZN) shake the foundation of traditional bricks-and-mortar sales. The SPDR S&P Retail ETF (XRT) has underperformed the broader market since the start of this year, down 4.5% compared to the S&P 500 Index's more than 15% gains. The retail ETF decreased 1.4% after trading higher in premarket action Tuesday as constituents readied for the busiest time of the year with Black Friday and the upcoming holiday season.

Campbell Soup Co. ( CPB) reported less-optimistic fiscal first-quarter earnings on Tuesday. The company posted earnings of 92 cents a share, which missed FactSet analysts' expectations by 7 cents. Campbell's also missed on revenue, posting $2.16 billion compared to forecasts of $2.17 billion. The company also lowered expectations for full-year earnings and now expects a decrease of between 1% and 3% year over year. Previous expectations saw earnings flat to up 2% for the year. Campbell's stock slid 7.81%.
 
Earnings reports are also expected Tuesday after the closing bell from HP Inc. ( HPQ) and Salesforce.com Inc. ( CRM) . As of the end of last week, 95% of S&P 500 companies had reported earnings for the third quarter. The blended growth rate for earnings among those firms stands at 6.2%, topping analysts' forecasts of 3.1% growth at the end of the quarter.

AT&T Inc. (T) Chairman and CEO Randall Stephenson and the company's outside counsel displayed some very thinly veiled displeasure with the Department of Justice on Monday, after the DOJ announced it is pursuing a lawsuit to block the telecom giant's merger with Time Warner Inc. (TWX) .

"This defies logic and it is unprecedented," Stephenson said of the suit.

AT&T shares slipped 0.14% Tuesday, while Time Warner shares rose 1%.

Tencent Holdings Ltd. (TCEHY) reached another major milestone on Tuesday when it became the first Asia-listed technology company to reach a market valuation of $500 billion, besting rival Alibaba Holding Ltd. (BABA) and topping Facebook Inc. (FB) in the emerging battle for global social media dominance.

Tencent shares closed up 2.38% in Hong Kong at HK$430 each, extending their year-to-date gain past 125% and giving the company a market capitalization of just more than HK$4.08 billion ($522 billion), edging past Facebook's $519 billion and Alibaba's $484.5 billion.

Facebook is a holding in Jim Cramer's Action Alerts PLUS Charitable Trust Portfolio. Want to be alerted before Cramer buys or sells FB? Learn more now.

More of What's Trending on TheStreet:

More from Futures

Market Movers: Tech Earnings

Market Movers: Tech Earnings

Are We Looking at a Fourth Industrial Revolution? Jim Cramer Breaks It Down

Are We Looking at a Fourth Industrial Revolution? Jim Cramer Breaks It Down

Jim Cramer Breaks Down the Fed Hawkishness and the Fourth Industrial Revolution

Jim Cramer Breaks Down the Fed Hawkishness and the Fourth Industrial Revolution

How a No Deal Brexit Would Impact U.K. Stocks

How a No Deal Brexit Would Impact U.K. Stocks

Economist Perspective: Brexit

Economist Perspective: Brexit