In Fact Quotes (page 43)

Actually, one of the better indicators historically of how well the stock market will do is just a Gallup poll, when you ask Americans if you think it's a good time to invest in stocks, except it goes the opposite direction of what you would expect. When the markets going up, it in fact makes it more prone toward decline.
Nate Silver