what is a stock index

What is a Stock Index?, How it is constructed? & Why It moves up or down?

In last few months, I have been hearing investors saying that markets are at peak so it cannot go up now, actually investors are not able to understand “what is