The S&P 500 isn't just reliant on the health and growth of the US economy.