there is no way to know when you will start losing but if you want the best solution for this problem i think it will be better to leave when you lose the half of your profit that you gain in that case you need to know that you run out of luck and you need to stop when you steel have a profit and start another day. and like that you will have a profit everyday and you will low the chances of losing all your funds.