The Market Had a Fantastic Second Quarter. But Here's the Warning No One Is Talking About.

Source Motley_fool

Key Points

  • The S&P 500 is reaching record highs, but it's also highly expensive.

  • The market has been weighing mixed economic data, including high inflation and steady interest rates.

  • Investors should ensure they're prepared for market fluctuations by holding enough safe stocks.

  • These 10 stocks could mint the next wave of millionaires ›

The market is booming, with the S&P 500 (SNPINDEX: ^GSPC) up 9% year to date, driven by artificial intelligence (AI). Or that's the story at the surface level.

After a rally from April lows, the S&P 500 gained 15% in the second quarter of the year. However, that masks what's been happening more recently; the S&P 500 is roughly flat over the past month. Here's what's going on, and what investors should do.

Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now, when you join Stock Advisor. See the stocks »

Oil, inflation, and interest rates

The market is back to record highs, although it hasn't moved much over the past few weeks. It recouped its April losses, caused by the Iran war and spiking oil prices, since oil prices have eased. However, the economic data coming in is mixed, at best.

Caution tape on a traffic cone.

Image source: Getty Images.

In his first meeting as Federal Reserve chairman, Kevin Warsh declined to cut interest rates, which was expected. While he didn't provide future guidance, the Federal Open Market Committee (FOMC) expects a rate hike before the year is out. This is as inflation continues to rise faster than the Fed would like; the Consumer Price Index (CPI) rose 4.1% in May, while the Fed is targeting a 2% rate.

Finally, as of Wednesday morning, President Donald Trump has said the ceasefire with Iran is over, and oil prices are already spiking again.

What should investors do?

The market has been factoring all of this in over the past month, and AI isn't necessarily providing more growth juice right now. In fact, many of the largest AI companies, like Nvidia, Amazon, and Alphabet, are also flat or down over the past month.

On top of that, the market is near its most expensive level ever. Not only is it at record highs, but its P/E ratio adjusted for inflation, or CAPE ratio, is 41, right behind a peak of 44 it reached in 2000. That preceded a major market crash and three back-to-back years of S&P 500 losses.

If you're worried, the worst thing you can do right now is get out of the markets. Historically, successful investors have stayed in the market and benefited from rebounds. You can't time the market, and you can only see the best exit and reentry points in hindsight.

What you can do, though, is make sure your portfolio is set up for any kind of circumstances. That means having the growth stocks you want to take advantage of the strong bull market, but also the safe stocks you need to protect your assets in the case of a market crash. If you're not well positioned to weather it, you might want to reshuffle your portfolio and make sure you allocate enough of your holdings to protective stocks.

Where to invest $1,000 right now

When our analyst team has a stock tip, it can pay to listen. After all, Stock Advisor’s total average return is 917%* — a market-crushing outperformance compared to 209% for the S&P 500.

They just revealed what they believe are the 10 best stocks for investors to buy right now, available when you join Stock Advisor.

See the stocks »

*Stock Advisor returns as of July 9, 2026.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Gold Price Analysis (XAU/USD): Gold Falls to 6-Month Low as Inflation Fuels Rate Hike Bets, A Buying Opportunity or a Falling Knife? Gold hit a 6-month low on Fed rate hike bets. However, strong central bank buying and technical indicators suggest potential tactical bounces and long-term accumulation windows.
Author  Mitrade Team
6 Month 12 Day Fri
Gold hit a 6-month low on Fed rate hike bets. However, strong central bank buying and technical indicators suggest potential tactical bounces and long-term accumulation windows.
placeholder
XRP Price Prediction for July 2026: Can Buyers Finally Break the Downtrend?XRP (XRP) price trades near $1.05, caught between a year-long downtrend and a sudden burst of buying.July has historically rewarded XRP holders. This year the month arrives with on-chain accumulation
Author  Beincrypto
6 Month 30 Day Tue
XRP (XRP) price trades near $1.05, caught between a year-long downtrend and a sudden burst of buying.July has historically rewarded XRP holders. This year the month arrives with on-chain accumulation
placeholder
Smart Money is Leaving Nvidia for This AI Chip StockNvidia stock price keeps sliding, yet the usual dip buyers are missing. Institutional money flow on the stock is the most negative of any major chip name, which means big investors are stepping back i
Author  Beincrypto
6 Month 30 Day Tue
Nvidia stock price keeps sliding, yet the usual dip buyers are missing. Institutional money flow on the stock is the most negative of any major chip name, which means big investors are stepping back i
placeholder
What to Expect From Ethereum (ETH) in July 2026Ethereum (ETH) enters July 2026 trading near $1,570, close to multi-month lows, after recording its first run of three consecutive red quarterly candles in its history.On-chain data and price charts n
Author  Beincrypto
7 Month 01 Day Wed
Ethereum (ETH) enters July 2026 trading near $1,570, close to multi-month lows, after recording its first run of three consecutive red quarterly candles in its history.On-chain data and price charts n
placeholder
Meta Compute Launch Sends AI Compute Stocks Tumbling GloballyMeta’s plan to sell surplus computing power hit chip stocks hard on Wall Street. Meta’s own shares climbed nearly 9% on the news.The announcement flipped years of assumed AI compute scarcity into a su
Author  Beincrypto
7 Month 02 Day Thu
Meta’s plan to sell surplus computing power hit chip stocks hard on Wall Street. Meta’s own shares climbed nearly 9% on the news.The announcement flipped years of assumed AI compute scarcity into a su
goTop
quote