Image Source: HillaryClinton.com. With two of the most disliked candidates in modern history and polls showing an ever-closer race, the presidential election could rock the stock market. The recent Brexit vote was a reminder of how suddenly and severely politics can move markets. And while U.S. stocks have recovered from the crash, the long-term impact of the vote on many industries and companies remains. In an earlier article, I discussed stocks that could jump on a Donald Trump victory. While Trump would likely have a volatile effect on the economy and the market, given his calls for protectionist policies and much stricter immigration, Clinton would be a more predictable Commander in Chief. As a Democrat like President Obama, Clinton is likely to continue many of his economic policies, and stocks that have benefited from the Obama administration should continue to thrive under Clinton. There are two sectors, in particular, that come to mind, because they have flourished, directly or indirectly, under the Obama administration and should do the same under Clinton: guns and solar. Here are two stocks that could get a boost if Clinton makes her way into the Oval Office. 1. Smith & Wesson Holding Company It may seem cynical to point to a gunmaker as a potential winner from a Clinton election, but the threat of gun control legislation under the Obama administration and recent mass shootings have been a relentless driver of gun sales. This has propelled Smith & Wesson Holding Company (NASDAQ: SWHC) and its peer, Sturm, Ruger (NYSE: RGR), higher. Data by YCharts. As you can see in the chart above, both stocks have gained more than eight times their value since Obama's election, making them among the best performers in the market during his administration. Notably, gun sales spiked the month Obama was first elected, in January following his reelection, and after the Sandy Hook shooting. They also spiked in December 2015, the month of the San Bernardino shooting and again this June after the attack in Orlando. Fear of terrorism and stricter gun laws consistently drives Americans to buy more guns. According to the FBI's National Instant Criminal Background Check System, guns are currently selling at a steady rate of approximately 1.2 million a month, double where they were during the Bush administration. Clinton is a well-known proponent of gun control, dating back to her days as First Lady. Recently, she promised to "take on the gun lobby and fight for common sense reforms," and she said gun control was one of her two biggest priorities. Those are the kind of words that will motivate gun owners to add to their collections, and the gun lobby is already claiming she will take Americans' guns away. Of the two major publicly traded gunmakers, Smith & Wesson has been the stronger performer of late, as its sales have grown faster, though it still has a cheaper valuation than Sturm, Ruger. Smith & Wesson looks like the better pick here, but both stocks are likely to pop if Hillary gets elected. 2. Vivint Solar Image Source: Motley Fool. Government policy can have an outsized influence over the energy industry, and that is especially true with the budding solar sector, where incentives such as tax credits under the Obama administration have given the industry a jump start. Even so, solar still has a lot of growth ahead of it as the renewable energy panels have only been installed in about 1% of American homes. The catch is that a lot of those incentives are set to expire during the coming years. Clinton, however, has promised to extend many of them, setting an ambitious goal of reaching 500 million solar panels by 2020, which would increase U.S. capacity by about five to seven times. Beyond that, Clinton is aiming for enough clean energy to power all U.S. homes by 2027. Vivint Solar (NYSE: VSLR), the No. 2 installer of residential solar panels in the U.S., would be in a prime position to benefit from an extension in the investment tax credit, which offers a 30% rebate for installations but is set to fall to 10% in 2019 before expiring in 2021. The company's stock has tumbled this year after a failed deal to merge with now-bankrupt SunEdison, but the upside potential is strong if regulatory momentum continues in the industry's favor. Other stocks worth considering are SunPower, SunRun, and SolarCity, which may be absorbed by Tesla Motors by the time the President takes office in 2017. If Clinton gets elected and is able to extend the credit further, that will surely be a win for Vivint and the solar industry in general. A secret billion-dollar stock opportunity The world's biggest tech company forgot to show you something, but a few Wall Street analysts and the Fool didn't miss a beat: There's a small company that's powering their brand-new gadgets and the coming revolution in technology. And we think its stock price has nearly unlimited room to run for early in-the-know investors! To be one of them, just click here.Jeremy Bowman has no position in any stocks mentioned. The Motley Fool owns shares of and recommends SolarCity and Tesla Motors. Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.