I have the following algorithm that will buy a stock (long or short) if the previous minute's price increases by .1% and holds it for 5 minutes, then sells. When I run it on one day of Apple, the stock price changes if I go long or go short. I assume it has to do with slippage, but I am only buying one share and Apple is liquid, so I am not sure why the price is influenced at all. I am wondering if someone can help me explain? Or somehow turn off slippage (which I am trying to do, but perhaps I'm not)?