What I do is I set a maximum loss for my daily trading. I set it to an amount I can afford (meaning I won't be broke at the end). Once I reach that loss, I am done for the day. I won't be trading again just to make up for the loss because that could just increase my losses. Of course, I don't aim to reach that limit every day. If I could end the trading with earnings, then the better.