There are many different ways to measure sentiment in the stock market, and each has its own advantages and disadvantages. One popular sentiment indicator includes the VIX index.
The VIX index is a measure of implied volatility in the stock market. Sometimes referred to as the "fear index," a high VIX reading indicates that investors expect a lot of volatility in the market.