Stock indices are affected by a variety of factors. These include economic and political events, consumer confidence, supply and demand, corporate earnings, and market news.
Major global indices are also impacted by investor sentiment towards certain sectors or stocks.
It's important to keep up to date with the markets you are trading when trading stock indices.