Yep knowing to stop is a key part of gambling, if you know when to stop you have already made 50% of the job in betting game, if you cant control your impulses you will get constantly fucked by the odds, so you must run with your profits as soon as possible. Oh and when it comes to trading is the same, you must set stop losses and know when you fucked up and run with the money.