Earlier quoted context omitted.
The idea that an HFT can see you attempt to buy stock before it goes to the market is not true and would be against the law if it happened.
It seems like it isn't against the law. The thing is, there are multiple markets not just one. So when you place an order to buy 100 shares of IBM, that order gets sent to many places to try to find the best offer to fill you. If a HFT can see you submit that order to 1 market, and then beat you to the other 4 markets and buy up all the shares before you, that's frontrunning. That would be illegal if your broker did…
Once that order hits the market it is public signalling data that should impact the prices on every other market. That some traders are more efficient at responding to that public signalling data than others is not an issue and in fact is a large part of why the markets are as efficient as they are.