The stock index is an average value of diverse stock prices listed and traded on the stock markets. It is considered as one of the main indicators to gauge the performance of the overall stock market of an economy. For instance, the S&P 500 is a stock index that represents the performance of the NYSE (New York Stock Exchange).