You just described "front running". This is an illegal, yet prevalent activity in the stock market. HFT algorithms watch trading patterns and jump ahead of trade orders. They buy the instrument before the other orders, mark it up and resell it. Despite being illegal, insiders do it because they never get prosecuted.
(post is archived)