You don’t need an advanced AI for this. You just need to be able to see orders and make trades faster than anyone else in the market.
Which they do by literally having their server machines physically in the same building as the Exchanges.
The system is rigged and has been rigged like this (not counting all the other ways it's rigged, such as the tons of insider trading) for over 2 decades.
PS: The book "Flash Boys" is a great read about HFT.