The S&P 500 Index (^GSPC 1.02%) closed relatively flat on July 21, up 5.5 points, or 0.17%. Yet while the index was not very volatile, oil stocks were surging higher. Nine of the top 10, and 17 of the top 20 biggest-gainers in the index today were oil and gas stocks, including Occidental Petroleum (OXY -0.15%) and Devon Energy (DVN 0.19%), both up more than 10%. 

Today's oil stock surge came as crude prices moved higher following news that the European Union reached a massive $2.1 trillion stimulus deal to help its member countries deal with the deep coronavirus recession that's caused global oil demand and prices to crash. 

In other notable news, Tesla (TSLA -1.11%) is set to report second quarter results tomorrow, July 22, in what could prove a massively important day. If the company reports a profit, that would mark a fourth-consecutive quarter of positive earnings, making the company eligible to join the ranks of the S&P 500.

Tesla Model X.

Image source: Getty Images.

Big deal for the EU lifting prospects for beleaguered oil market

While many tech and consumer goods stocks have recovered in recent months, the oil and gas industry remains stuck in a morass of oversupply. Global producers have cut output sharply, but a glut of crude in storage continues to weigh on the industry's ability to ramp output without cratering prices again. Today's EU stimulus news helps provide some reprieve, as it is likely to increase demand and boost economic output, which should hopefully help perpetuate continued recovery in oil demand. 

At least that's what investors are betting on. Crude prices gained more than 2%, sending almost every S&P 500 oil stock up today.  In addition to smaller independent producers, oil giants ExxonMobil (XOM -2.78%) and Chevron (CVX 0.37%) gained 5% and 7%, respectively, today. 

Here's the caveat: Crude prices are still below $45 per barrel, and many independent oil producers continue to struggle with low prices and weak demand. Without a sustained increase in oil demand and discipline from producers to not flood the market again and crater prices, the oil industry remains fraught with risk. The well-capitalized and diversified integrated majors like ExxonMobil, Chevron, and Phillips 66 (PSX -3.71%) should have little trouble surviving the downturn, but investors shouldn't expect a fast recovery to pre-crash prices. 

Will Tesla make a profit and join the S&P?

Tesla, with a market cap of more than $290 billion at recent prices, would be the 13th-largest company in the S&P 500 if it were a member. But since the company has yet to deliver four consecutive quarters of positive net income, it has failed to qualify as eligible for the index. 

That could change on July 22, when the company reports earnings. What does it matter? In short, it could prove another catalyst to move the company's already stratospheric stock price even higher, as the index funds that track to the S&P 500 index have to buy shares.

Three of the five largest funds in the U.S. are S&P 500 index funds: The Vanguard S&P 500 Index Fund (VFIAX 1.02%) and Vanguard S&P 500 ETF (VOO 1.00%) (managed as a single fund), with over $533 billion in assets, the SPDR S&P 500 ETF Trust (SPY 0.95%), with over $290 billion in assets, and the Fidelity 500 Index Fund (FXAIX 1.03%), with over $229 billion in assets. Add the eighth-largest ETF, the iShares Core S&P 500 ETF (IVV 0.98%) and its $200-plus billion in assets, and funds that manage more than $1.2 trillion in assets would need to make room for a new top-15 holding. 

It all pivots on whether Tesla can make a profit or not; shares fell 4.5% today as analysts lined up to downgrade their prior expectations ahead of earnings. Tune in tomorrow to find out what happens next. 

Notable news: Coke says worst is over, Microsoft earnings coming up 

Investors were already expecting an ugly second quarter report from Coca-Cola (KO), and the beverage giant delivered on that expectation. Revenue fell 28% and earnings were down 32%, but demand has steadily improved with each passing month; global volumes were down 25% in April, but by June they were down only 10%, and through early July volumes were only off by mid-single-digits. Investors had a smile with Coke's earnings today; shares gained 2.3%. 

Looking to tomorrow, Microsoft Corp (MSFT 1.82%) is set to report its fiscal fourth quarter earnings on July 22 after market close.