You aren't going to truly find your answer on the internet somewhere but I would like to share with you things that have helped me strive to have a positive outlook on life. You have to first accept that LIFE IS NOT EASY. Life was never meant to be easy. If you feel like things need to go your way, things should automatically be easy, or that you simply shouldn't have to work hard for what you want then you are on the road to major setbacks. You must truly know that everyday can and most likely will be a challenge and have to be ready to assess it with a sound mind.
Another thing that has helped me out is having a belief in something. I am not only speaking spiritually... I mean a belief that things will get better and that every situation has an ending. If you don't believe there is an end to your misery or that you will never get out of a bad situation... most likely you won't.
One thing people find the hardest to do is change. If something isn't working in your life or you feel like someone brings a lot of negative energy- change it. It is easier said than done but once again life isn't suppose to be a cake walk. It's easier to stay positive when you know you are surrounding yourself with good things and know that there is always room for growth.
So here is to taking a step in a more positive direction.