I'd say the state of happiness is the prerequisite to "luck". And it's proved and tested by me.
And, of course, I agree that it's ok not to be ok all the time, but it's the biochemical and physiological state of "happiness" leads to achieving things, not the other way around.