Nasdaq‘s rebound falters shortly after the opening of Tuesday trading

U.S. stocks closed higher Tuesday, following a volatile session that saw major indexes fluctuate widely as investors digested a sharp move lower in the previous session and gauged the likelihood of both trade risk and further weakness in technology names.

The day’s gain returned the S&P 500 above a closely watched technical indicator, and brought the Nasdaq back into positive territory for the year. However, the rise only erased about half of Monday’s decline.

What did the main benchmarks do?

The Dow Jones Industrial Average rose 389.17 points, or 1.7%, to finish at 24,033.36. The S&P 500  rose 32.57 points, or 1.3%, to end at 2,614.45 The Nasdaq Composite Index added 71.16 points, or 1%, to close at 6,941.28. Both the S&P and the Nasdaq fell into negative territory multiple times throughout the session, with the indexes being led largely by moves in technology and internet names.

The day’s gains were broad, with all 11 S&P 500 sectors closing in positive territory and eight of them rising at least 1%. The top performer of the day was energy, which climbed 2.1% on the back of a 0.9% rise in the price of crude oil.

The day’s move was partially a reaction to Monday’s selloff, when the S&P and the Nasdaq shed more than 2% and the S&P for the first time since the United Kingdom’s vote for Brexit in June 2016.

Volatility is expected to remain elevated, and President Donald Trump is a particular focus for the equity market, with investors wary of any trade actions he might announce — particularly after China retaliated to U.S. tariffs with protectionist measures of its own — as well as his grudge with Amazon, which he has repeatedly criticized over Twitter in the past week.

Don’t miss:

What’s driving markets

Tech stocks will likely remain on the radar, given they have been driving recent losses. Worries about Amazon Inc. given Trump’s attacks on the online retailer, could continue Tuesday after that he’s seeking ways to damage the company. While Amazon is classified as a consumer-discretionary stock, it often moves on tech issues and it is part of the so-called group of “FAANG” names that drove markets higher in 2017 but have struggled more of late.

Read:

The trade situation, which has been knocking the stock market, should be another focus. China over the weekend, in retaliation for the Trump administration’s planned tariffs on Chinese imports.

Also:

What strategists are saying

“This is still a market trading on fear instead of fundamentals and on tweets instead of technicals, which has made it frustratingly difficult to figure out where we’re headed in the near term,” said Andrew Adams, an investment strategist at Raymond James.

“There’s just not much positive news to help balance out the daily onslaught of fear-producing headlines about trade wars and tech crises, especially since we are currently in between earnings seasons.”

Read:

Which stocks are in focus?

The “FAANG” names — in addition to Amazon, this group includes Facebook , Apple , Netflix and Google-parent Alphabet — were in focus after their sharp losses Monday.

Amazon closed up 1.5%, but trading was volatile after the latest in a series of Trump tweets against the company.

Netflix gained 1.2%. Alphabet rose 0.6% and Apple added 1%. Facebook rose 0.5% after previously having fallen as much as 2%.

Read:

Tesla Inc.  rose 6% after , which addressed concerns over its ability to turn out as many Model 3 sedans as it has promised.

General Motors Co.  rose 3.3% after reporting its March sales figures. It also said it would . Ford Motor Co. rose 2.7% after reporting its own March sales.

Walmart Inc.  rose 1.5% after CNBC reported the retailer is . That comes days after Walmart was reported to be in early talks to buy Humana Inc. .

21st Century Fox Inc.  fell 0.3% after the media company proposed from the rest of Sky PLC  to allay U.K. regulators’ concerns its bid to acquire the 61% of Sky it doesn’t already own. Fox also said Walt Disney Co. has expressed interest in buying Sky News.

Spotify Technology Inc. fell 10% in its trading debut, .

Opinion:

And see:

What are other markets doing?

Asian stock markets closed lower, also fell, as traders returned from a long holiday weekend.

Oil prices  were modestly higher, while gold futures slipped and the ICE U.S. Dollar Index clung to a thin gain.