How do the prices go up or down in the market?

Stock prices go up or down based on the supply and demand of the given stock.  When more people want to buy a stock (demand) than sell it (supply), the price moves up. Alternatively, if more people want to sell a stock than buy it, there would be greater supply than demand, and the price would fall.