Midterm elections historically lead to stock market rallies, regardless of the results. Wednesday was no exception.

The Dow Jones Industrial Average DJIA, +2.13%  rose 545 points, or 2.1%, to close at 26,180.30. The S&P 500 Index SPX, +2.12%  was up 2.1%, while the Nasdaq Composite Index COMP, +2.64%  added 2.6%.

A split in party control of the two houses of Congress tends to cheer investors.

The resignation of Attorney General Jeff Sessions at President Trump's request added fuel to the broad rally and helped stretch a seven-day rally for marijuana stocks.

All stocks in the Dow Jones Industrial Average were up on Wednesday, except for Procter & Gamble PG, -0.24%  

The Nasdaq 100 NDX, +3.07%

source: MArketWatch