To help shift your mentality to that of an optimistic trader, try to always avoid generalizations for bad trades, and only generalize good trades.
A healthy mentality and belief system ultimately comes from a high ratio of positive thoughts to negative thoughts. Make sure you remain positive and realistic when evaluating your trades and you will already be leagues ahead of the competition.