S&P 500 holds on to modest gains after strong readings for home prices and consumer confidence

The S&P 500 notched another record high on Tuesday amid bullish economic data, but overall gains for the stock market were muted as Wall Street continued its recent period of low volatility.

The broad market index ticked up about 0.1%, building on a record close from the previous session. The Dow Jones Industrial Average was up 45 points after being up more than 100 points earlier in the session, while the tech-heavy Nasdaq Composite rose about 0.2%.

Homebuilder stocks moved higher after S&P Cash Shiller said home prices rose more than 14% in April compared to the prior year. Five U.S. cities, including Seattle, saw their largest annual increase on record. Shares of Lennar and PulteGroup rose 1.2% and 2.4%, respectively.

General Electric boosted the industrials sector, rising over 1% after Goldman Sachs named the stock a top idea. Mining stock Freeport-McMoRan also added more than 1%.

Semiconductor stocks gained strength later in the session, with Skyworks and Advanced Micro Devices climbing 4% and 3.3%, respectively.

The Conference Board’s consumer confidence reading for June came in higher than expected, adding to the bullish readings about the economic recovery.

Shares of Morgan Stanley jumped more than 3% after the bank said it will double its quarterly dividend. The bank also announced a $12 billion stock buy back program. The announcement follows last week’s stress tests by the Federal Reserve, which all 23 major banks passed. However, some other bank stocks gave up early gains and weighed on the broader indexes.

The early strength for cyclical and value stocks on Tuesday pushed back against some of the recent rebound in growth and tech stocks. Andrew Smith, chief investment strategist at Delos Capital Advisors in Dallas, said he expects those groups to continue to jockey back and forth in the months ahead.

“It’s not really going to be one of those easy rotations that we’ve had in the past, where all the gains come out of value or the ETF asset flows are going to go out of value and into growth. I think it’s going to be a choppy market back and forth,” Smith said, adding that he recommends investors add defensive stocks and not just shift fully back to growth.

With the market entering the final trading days of June and the second quarter, the S&P 500 is on track to register its fifth straight month of gains. The Nasdaq is pacing for its seventh positive month in the last eight. The Dow, however, is in the red for the month, and on track to snap a four-month winning streak.

Through Monday’s close, the S&P 500 is up 14% and the Dow and Nasdaq are up 12% so far for 2021.

“Markets are off to a strong start this year,” LPL Financial chief market strategist Ryan Detrick said. “However, most of those gains came early in the year, and many stocks have stagnated over recent months,” he added. Detrick believes investors should stay overweight stocks relative to bonds, but pointed to some concerns in the market, including elevated valuations.

JPMorgan quantitative strategist Dubravkos Lakos-Bujas on CNBC’s “Squawk Box” that the market appeared to have near-term upside.

“The growth policy backdrop in our opinion still remains supportive for risk assets in general, certainly including equities. At the same time, the positioning is not really stretched to where we are in a problematic territory. So we do think there is still a runway. … The summer period, the next two months, is where I think the market continues to break out,” the strategist said.

On Monday, the S&P 500 and Nasdaq closed at record highs thanks to a strong performance from Big Tech stocks. The Dow, however, dipped 151 points amid a pullback in Boeing and Chevron, among other names.

Become a smarter investor with CNBC Pro
Get stock picks, analyst calls, exclusive interviews and access to CNBC TV. 
Sign up to start a free trial today

The U.S. stock market rose slightly on Tuesday.