Investors have grappled with many obstacles this year, ranging from the withdrawal of the Federal Reserve's post-crisis stimulus to patchy economic growth and military flare-ups in Ukraine and Israel.