Prices are decided purely by demand and supply, meaning if more investors want to buy a stock than sell it at a given price, the price rises, and vice versa.