Well, if the price would be incorrectly set, then bots like this one would make money, which would in sufficient time cause the market to adapt and the average price would change so the bot doesn't work.