The good times continue to roll on Wall Street.

The Dow Jones industrial average stormed above the 24,000 mark for the first time on Thursday as investors reacted joyously to news that the Senate appeared close to passing its tax overhaul bill.

The blue-chip index gained 331.67 points, to close at 24,272.35 — the fifth 1,000-point plateau scaled this year and the sixth since President Trump was elected last year.

The updraft under much of Thursday’s Dow rise was generated after Sen. John McCain (R-Ariz.), once a critic of the chamber’s tax bill, said he now supported it.

“I believe this legislation, though far from perfect, would enhance American competitiveness, boost the economy, and provide long overdue tax relief for middle-class families,” McCain said in a statement.

A Senate vote on the bill is expected by Friday.

Tax cuts would give “greater incentive for companies to increase capital expenditures, which would obviously mean continuation of solid earnings growth,” Peter Cardillo, chief market economist at First Standard Financial, told The Post.

The Senate bill could lower corporate tax rates to 20 percent from 35 percent — though few companies in the S&P 500 pay that much.

“A lot of investors are focused on 35 percent, but they need to be focused on the effective rate,” which is closer to 26 percent, Jack Ablin, chief investment officer at BMO Private Bank, told The Post.

Senate Republicans are reportedly weighing tweaking the rate cut to 21-to-22 percent.

“Twenty-two percent doesn’t make this a horrible bill,” said Sen. Lindsey Graham (R-SC). “It’s like making a cocktail. If you’ve got to add more of this and less of that, I’m fine. Failure is not an option.”

The Dow’s meteoric rise since President Trump was elected last year is one of several data points that show that Trump is having a positive affect on the economy.

In addition:

The US gross domestic product increased 3.3 percent in the third quarter, after rising 3 percent in the second quarter.

Housing prices in 20 large US cities in September rose 6.2 percent from a year earlier, the largest increase in more than three years.

The unemployment rate, at 4.1 percent in October, is the lowest since December 2000.

“Another milestone is not a surprise in a year where we’ve hit more than 50 all-time highs,” Ablin said.

The S&P 500 index also hit a fresh record, gaining 21.5 points, or 0.8 percent, to 2,647.58.

The Nasdaq composite indec added 49.58 points, or 0.7 percent, to 6,873.97 after getting weighed down on Wednesday by sell-offs in tech stocks.