I've read the advice to leave a table after doubling up, here on FTR. It is not bad advice, but it doesn't apply everywhere to everyone. This self-discipline rule is a reasonable tactic for someone with a short bankroll and an early learning curve. Here's why:
  • it's easy to negatively change your game when you are up a bit &

    the odds change for smart opponents to call your bets when you have a big stack because of implied odds (it becomes an expensive lesson) &

    you'll feel better about your progress when you are 'banking' your successes, even after some inevitable losses

But after that, when your game become more adaptable, and you understand reads and odds better, stay at that fat table with your fat stack -- you will get more folds from the other players, and will continue to play at a table with folks who have already proven they are willing to give you money.

There is so much great advice on FTR. But it takes a while to learn to apply the advice in the right situations, and that the advice doesn't always apply to you. There even are opposing options that are both right, but one one option is right for you, and the other option is there to help you read opposing players.

Good luck and welcome.