It doesnt actually do this. This would be arbitrage. Ive talked to Gunthar in the past and he said hes working on an Arbitrage bot, not sure how far this is along, could be one line of code, but I bet sometime in a couple months he will have a version that does this.