Do you know what the most successful people in the world all have in common? They all practice positive thinking.
Some people think that everything around us is made up of pure energy and by practicing positive thinking, we attract good things towards us. The converse is also true: Thinking negative thoughts attracts bad stuff towards us. In other words: Like attracts like.
Even if you don't believe all this new age stuff, just looking for the good and positive in all things makes you change your thought processes to the point where you're expecting good things to happen, or actively looking for beneficial opportunities. These could be things that are all around us, but if you're not looking for them, you wont see them.
Like the old saying: Seek and ye shall find.
Some people find repeating a mantra beneficial. Something like: “I am very lucky. Money, wealth and good fortune flow to me in abundance.” Now you EXPECT good things to happen, and aren't on the defensive and needing to protect yourself from misfortune.
And when things go wrong?
It's no big deal. You know that because you're lucky, something better is just around the corner. Some of the most successful people on the planet have overcome adversity and failure that would cripple most of us. But they always had confidence and a positive attitude, meaning they KNEW they would succeed and achieve their goals in the end. Do the same.