It’s the Triple Crown of Wall Street.

The three major stock indexes all hit all-time records on Monday — the first time that’s happened since August, as the Middle East looked ready to drive up the price of oil.

The Dow Jones industrial average has soared by more than 21 percent this year from its low point in February, closing Monday at a high of 18,956.69.

That’s an increase of 3,296.51 points in nine months.

This most recent record is the fifth all-time high just for November.

The S&P 500 rose 16.28 points, to 2,198.18, breaking a record from Aug. 15. And the Nasdaq rose 47.35 points, to 5,368.86, its second all-time high this month.

The simultaneous hat trick of all-time records is rare because the three indexes represent different kinds of investors, Quincy Krosby, market strategist at Prudential, told The Post.

Individual investors gravitate toward the Dow, while institutional investors typically invest in the broader S&P 500. The Nasdaq is largely made up of technology companies.

Equity markets have been rallying since the election of Donald Trump on Nov. 8, on the perception that he’d stimulate construction spending, loosen regulations, and lower taxes, both personal and corporate, though the president-elect has been light with proposal details during this honeymoon period.

“Right now, the market is enjoying those factors associated with the Trump administration,” Krosby said.

Other factors also contributed to the positive picture in stocks globally.

Stronger global economic growth numbers encouraged investors to buy, Krosby said. She added that robot traders were likely piling into stocks based on momentum.

Fears of an almost certain rate hike next month — based on Fed Fund Futures — from Federal Reserve chief Janet Yellen has had little effect on dampening investors appetite for equities.

DuPont chemical was the biggest winner in the Dow, rising 1.8 percent, to $70.07.

Oil rose by $1.80, to $47.49 a barrel in New York, after Iraq and Iran backed an OPEC proposal to cut back on oil production.