Can someone explain this psychology ?

Recently lost my job and I have become very negative. I feel the worst about every situation and I keep thinking about it because in the end if something bad happens at least I know that it would have happened. Being positive never worked with me because if something bad happened then I would be shutter and being negative gave me a sense of protection that if bad thing happened atleast I knew about it before hand. I don't want to be this negative I want to be positive and I want to think but my future in a positive manner but I am just afraid to do so.