The riot stocks and the gun stocks both gained following the shooting at a historic black church in Charleston, South Carolina, which left nine dead and dozens wounded.
Riot stocks, which typically include stocks of firearms, have surged on the rally in recent days.
“The rally in stock prices is just one of many signs of investors’ confidence in the U.S. economy and a robust economy,” said Jim Cramer, an analyst with RBC Capital Markets.
“There are many positive things to report, including a weak U.N. unemployment report, but the stock market has been on a tear over the past couple of days, with investors taking a more optimistic view.”
The rally is also helping prop up the Dow Jones Industrial Average, which has gained nearly 200 points in the past 24 hours, thanks to the rallies in stock markets.
Ahead of the rally, the Dow was up about 13 points on Wednesday.
A rally in the S&P 500, a gauge of stocks, is also adding momentum to the rally.
The S&P 500 is up about 8.6 percent so far this year, the best performance since January 2015.
The S&p 500 has gained more than 8 percent since the shooting in Charleston and the recent rally in stocks.
But analysts say the stock rally has slowed slightly as investors continue to watch the political debate in the United States and the election of President Donald Trump.
“While the markets have been up on the stock indexes, the stock-market rally has been a bit softer than the S+P 500 rally,” said Jefferies analyst Brian Johnson.
“It is not clear yet if the stock rallies will continue, but it seems likely.”
As of this writing, the S +P 500 was up 0.8 percent, the Nasdaq was up 1.3 percent, and the Russell 2000 was up 7.4 percent.
The Dow Jones has gained about 1.8 trillion dollars in value this year and is up more than 4 trillion in the last five years, according to data from FactSet.