What crises and wars mean for the stock market