NEW YORK CITY, RAW – Wall Street’s main indexes have closed at their highest levels ever, lifted by Tesla and bank stocks as investors eyed the start of the second-quarter earnings season and a batch of US economic data.

The S&P 500 financials, communication services and real estate sector indexes each gained more than 0.8 per cent.

Tesla rallied more than 4.0 per cent and was the top contributor to gains in the S&P 500 and Nasdaq.

CEO Elon Musk insisted in court on Monday he does not control Tesla, and he said he did not enjoy being the electric vehicle company’s chief executive as he took the stand to defend the company’s 2016 acquisition of SolarCity.

The S&P 500 banks index climbed 1.3 per cent ahead of quarterly earnings reports this week from major banks, including Goldman Sachs and JPMorgan on Tuesday.

JPMorgan Chase rose more than 1.0 per cent and Goldman Sachs rallied more than 2.0 per cent, fuelling the Dow’s gains.

Investors will closely watch quarterly reports for early clues on how long the US economic recovery may last, with June-quarter earnings per share for S&P 500 companies expected to rise 66 per cent, according to IBES data from Refinitiv.

The S&P 500 has rallied about 17 per cent so far this year, with some investors questioning how long Wall Street’s rally may last and concerned about a potential downturn.

“Earnings season is going to be warmly greeted as an opportunity for existing biases to be confirmed,” warned Mike Zigmont, head of trading and research at Harvest Volatility Management in New York.

“Even if forecasts are not as rosy as what the most bullish had hoped, it’s all going to get rationalised away.”

Focus this week will also be on a series of economic reports, including headline US inflation data and retail sales.

As well, Federal Reserve Chair Jerome Powell is due to appear before Congress on Wednesday and Thursday for views on inflation.

Investors have been concerned about higher inflation and the spread of the Delta coronavirus variant in the past few sessions, with traders seesawing between a preference for economy linked-value stocks and tech-heavy growth names.

The Dow Jones Industrial Average rose 0.36 per cent to end at 34,996.18 points, while the S&P 500 gained 0.35 per cent to 4,384.63.

The Nasdaq Composite climbed 0.21 per cent to 14,733.24.

All three closed at their highest levels ever.

Walt Disney jumped over 4 per cent to a two-month high after it and Marvel’s “Black Widow” superhero movie took in $US80 million ($A107 million) in its first weekend. And the entertainment company plans to raise prices for its ESPN Plus streaming service.

Didi Global Inc dropped about 7 per cent after it confirmed China’s cyberspace administration notified app stores to remove the ride-hailing company’s 25 apps and said the move could impact its revenue in the region.

Virgin Galactic Holdings tumbled 17 per cent after the space tourism company said it may sell up to $500 million worth of shares, a day after the company completed its first fully crewed test flight into space with billionaire founder Richard Branson on board.

Volume on US exchanges was 8.3 billion shares, compared with the 10.5 billion average for the full session over the last 20 trading days.

Advancing issues outnumbered declining ones on the NYSE by a 1.43-to-1 ratio; on Nasdaq, a 1.11-to-1 ratio favoured advancers.

The S&P 500 posted 66 new 52-week highs and no new lows; the Nasdaq Composite recorded 85 new highs and 38 new lows.