All three major U.S. indexes closed at record highs on Tuesday, Nov. 21, as retail earnings and strength in the tech and health-care sectors buoyed optimism prior to the Thanksgiving holiday.

The Dow Jones Industrial Average gained 160 points, or 0.69%. The S&P 500 Index rose 17 points, or 0.66%, after it surpassed 2,600 points for the first time in earlier trading. The Nasdaq increased 72 points, or 1.06%.

Most sectors moved higher Tuesday, but tech stood out as the leader. The Technology Select Sector SPDR ETF (XLK) gained 1.04% and the iShares S&P North American Tech Sector Index Fund (IGM) increased 1.1%. Tech names dominated the Dow, with Apple Inc. (AAPL) and Microsoft Corp. (MSFT)  topping the blue-chip index with gains of 1.9% and 1.4%, respectively. All but a handful of Dow components -- including Walmart Stores Inc. (WMT)  , General Electric Co. (GE) and Verizon Communications Inc. (VZ) -- were in the green Tuesday.

The Healthcare SPDR ETF (XLV) gained 0.9%, meanwhile, boosted by strong results from medical equipment company Medtronic Plc (MDT) . In its fiscal second quarter, Medtronic posted earnings of $1.07 on sales totaling $7.05 billion, topping analysts' earnings forecast by eight cents. Medtronic stock gained 4.8%.

The remainder of the shortened holiday week is 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.

Apple and General Electric are holdings in Jim Cramer's Action Alerts PLUS Charitable Trust Portfolio. Want to be alerted before Cramer buys or sells AAPL and GE? Learn more now.

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.12% 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 3.7%.

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 brick-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 with the S&P 500 Index's 15%-plus gains. The retail ETF decreased 1.26% 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 profit of 92 cents a share, which missed FactSet analysts' expectations by 7 cents. Campbell's also missed on revenue, posting $2.16 billion compared with forecasts of $2.17 billion. The company lowered expectations for full-year earnings and now expects a decrease of between 1% and 3% compared with the previous 12 months. Previous projections were for earnings to be flat to 2% higher for the year. Campbell's stock slid 8.2%.
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 agency announced it would sue 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.92% Tuesday, while Time Warner shares rose 2.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.

WTI crude oil futures for December delivery climbed 41 cents to $56.83 per barrel Tuesday. The increase in price comes as investors continue to expect an extension of OPEC production cuts at the group's meeting next week.

More of What's Trending on TheStreet:

More from Futures

Long-Term Rates, Not the Fed, Influence Stocks

Long-Term Rates, Not the Fed, Influence Stocks

Oil Surges After 'OPEC+' Agrees to 1.2 Million Barrel Production Cut

Oil Surges After 'OPEC+' Agrees to 1.2 Million Barrel Production Cut

Economist Perspective: Post-G20 Market Implications

Economist Perspective: Post-G20 Market Implications

Market Movers: U.S. Jobs Report

Market Movers: U.S. Jobs Report

FX Futures: How Currency Trading Revolutionized Finance

FX Futures: How Currency Trading Revolutionized Finance