Its not that simple, sadly.
You can't buy $InfinteMoney$ worth of stock X in a single transaction, you end up moving the stock price as you buy/sell. This allows others to respond to your activity. At small scales, a system that appears to work will break down at large scales.