If you want to buy a large amount of shares, you had better to hire some kind of hedge strategy (This is a little complicated and may be illegal in US, I am not sure).
Basically your buying will affect the market price and price will go up.
Same thing happens when you want to sell a large amount of shares, you should not assume the market will consume all your shares with the same price.