Take a break from gambling, a week or a month. Then limit yourself to a small amount every week. If you can't turn that small amount into profits then wait until next week. This would be good in stopping you from gambling all you have and losing.
But how can a person take a break when all in his mind is gambling, it is not easy to quit or stay away in gambling if you are doing it by yourself, you need to surrender yourself to have the help you needed.