NEW YORK — The stock market is getting its momentum back.
All major stocks indexes rose Tuesday, and the biggest gains were in riskier small-company stocks and sectors that do best when the economy is growing.
Major indexes rose for a fourth straight day. The Standard & Poor’s 500 index had its best run in two months.
Traders have grown more confident after Friday’s strong jobs reports and on expectations of record corporate earnings for the second quarter, which ended June 30. So far, the stock market is up nearly 3 percent in July following a 1.5 percent dip in June, its first monthly decline since October.
The Russell 2000, an index of small-company stocks, rose nearly 1 percent Tuesday. The Dow Jones transportation average, seen as a leading indicator for the broader economy, led all indexes with a 2.3 percent rise, its best performance in a month.
The gains suggest that investors are more certain that the economy’s prospects are good. In the first half of the year, stock markets were powered by companies that pay large dividends and are considered a sure way to make money even when the economic outlook is iffy.
The Russell 2000 rose eight points, or 0.9 percent, to 1,018.05. It has gained 4.2 percent in July and is moving deeper into record territory. The index has risen 20 percent, this year, more than its large-company counterparts, the Dow Jones industrial average and the S&P 500 index.
Investors “are starting to go to the more aggressive areas that usually do better in an expansionary economy,” said Ryan Detrick, a senior technical strategist at Schaeffer’s Investment Research.
The Dow Jones transportation was led by strong gains for Alaska Air Group and FedEx.
The index jumped 148 points to 6,446. Alaska Air Group rose 7 percent after it forecast an additional $50 million a year in revenue from increased fees. FedEx rose 6 percent on speculation that William Ackman’s hedge fund, Pershing Square, could invest in the company.
Wall Street is also turning its attention to corporate earnings. Results for the second quarter, which ended nine days earlier, should give traders and investors insights into the economy. Market watchers spent most of June trying to figure out where the Federal Reserve was headed with its economic stimulus program.
Along with the quarterly results, investors want to see how confident companies are about the rest of the year, said Cam Albright, director of asset allocation for Wilmington Trust Investment Advisors.
Major U.S. stock indexes have notched a series of all-time highs this year on expectations that earnings will remain at record levels.
“A lot of what the market has justified its advances on is a strong second half for the economy and a strong second half for earnings,” said Albright. “It’s important that we see verification of that.”
The S&P 500 gains were led by industrial firms and companies that provide raw materials. Telecommunications companies, which do well when the outlook is gloomier, fell.