Have a cup of tea, eat a big bar of chocolate and take it a bit easier on myself. We all go through bad patches in life, but you have to learn to roll with the punches and look for the positives in whatever is happening
I'm pretty sure almost everyone has been there, where you are, sitting on the couch feeling unlucky. Only when we realize that luck has nothing to do with it can we achieve our goals.
Whatever it is you are trying to accomplish, just keep learning and keep doing -- otherwise known as 'plan, do, review.' And repeat.
Waiting for your 'luck' to turn, and/or beating yourself up over what you did yesterday is all pointless, and a slippery slope into a miserable existence.
Stop wasting your time. Get a plan. Work it. Revise it regularly. Give Lady Luck her walking papers. She's a fickle witch who will deal you as much bad luck as good, and then leave you crying, broken and useless on the floor.