“Pessimistic” in Chinese is 悲观 (bēiguān).
我时而乐观,时而悲观。
I am by turns an optimist and a pessimist.
Example sentence from Tatoeba (CC BY 2.0).