The war in Iran started more than a month ago, and it’s been a major factor weighing on the minds of millions of retail investors. The conflict has touched numerous countries around the Middle East, killed thousands of people, displaced countless more, , and choked off oil and key resources like fertilizer to the rest of the world. While there have been murmurs about possible cease fires or peace deals, US ground troops , which means there’s a lot of volatility. The conflict has driven energy prices higher, hammered stocks in some sectors, and buoyed others.

Investors may rightfully be wondering what they should do. Go to cash? Double-down? Just wait and see?

The Geopolitical Crisis Playbook for Investors

The investing playbook for the war in Iran is actually not that unusual. Major wars and terrorist attacks have been a serious risk ever since 9/11. The fundamentals of investing when a major geopolitical event occurs remain basically the same.

Here’s how my team has responded to the war in Iran, and the lessons learned from this can apply to many geopolitical disruptions.

Make Sure You’re Diversified

This is the most important step for your average investor, and it’s something you need to do before something like a war starts. If you’re truly diversified, you should have a mix of bonds and stocks, including some energy investments.

This also assumes you’re invested for the long term. Most investors do better in the long run by investing for the long term. So, if something like the Iran war happens, your diversification will protect you. You can wait out downturns. Cruise companies and airlines probably aren’t going to do well, but energy will, and if you’re invested in defense, companies like General Dynamics and Raytheon should.

So, to reiterate: If you’re a typical investor with a 401(k) or simple portfolio, so long as you’re diversified, you don’t need to do anything.

But what about retail investors who are long term but more engaged?

Analyze the Conflict

Start by understanding the conflict. With something like the Iran war that affects critical oil infrastructure and shipping, as well as critical global aerospace, you’ll very quickly see some sectors struggling, , and others doing very well, such as energy and defense.

Isolate Problem Sectors

Once you’ve done your analysis, you want to look at your entire portfolio and start trimming in the problem sectors and raising some cash that way. You want to decrease your exposure to the market and make your portfolio generally more conservative by eliminating names that would get hurt by an extended conflict.

Invest in Winners

Once you’ve reduced your exposure and raised cash, you want to invest in things that are going to do well. In the case of the war in Iran, that means defense and energy. We bought Exxon, Occidental Petroleum, Chevron, and LNG, as well as Raytheon and General Dynamics. (This isn’t a recommendation, just an example of what we did. Investors need to consider their own exposure and portfolios.)

Short the Losers

If you’re a sophisticated investor who understands how to use shorts, those can be useful at this point. If you know what sectors are really going to get hammered, like cruises or airlines in this case, then short them. We also shorted the S&P 500. Once you’ve done this, you should have a range of new positions: investments in things you think are going to do well and shorts on what you think is going to be punished.

While the shorts can be very helpful, if that’s beyond your capabilities, simply investing in the sectors that will do well and trimming your exposure can help minimize the pain.

Hold Out for Victory

The next question is how long do you maintain your positions. The short answer is until victory is declared. But how do you know when that is? If the President says “we’ve won” and hostilities stop. Or is it when the Strait of Hormuz opens up and trade resumes? Or the war goes on long enough that it gets entirely priced into the market, which is what happened when Russia invaded Ukraine; the market went crazy for a few months and then settled down, with the exception of energy, which really took off.

Conclusion

There’s no such thing as risk-free investing, and it’s also impossible to see the future. But, while you can never control your losses, you can help offset them if you don’t panic and set aside your emotions. It’s important to have a game plan before disaster strikes. The particulars may change, but the general approach won’t, and if you already know the steps ahead of time, you’ll have a much better chance of success.