There’s a common misconception that when you retire, you should stop investing in stocks; but it’s more complex than that.