Buying at the Bid and Selling at the Ask is not likely in the real world. It may happen once in a while if you place a Limit order way in advance of the price being hit (FIFO = First in First Out, filling regime). But other than that, forget about it! If you want to execute a trade right away...