A very successful family member told me to move at least every 5-7 years, as your current company almost always begins to undervalue you relative to the market after a period of time. There are always caveats, but I have successfully moved a couple times and took a leap in both salary and responsibility each time.