Slippage (finance)
With regard to futures contracts as well as other financial instruments, slippage is the difference between where the computer signaled the entry and exit for a trade and where actual clients, with actual money, entered and exited the market using the computer’s signals. Market impact, liquidity, and frictional costs may also contribute. Algorithmic trading is often used to reduce slippage, and algorithms can be backtested on past data to see the effects of slippage, but it is impossible to eliminate entirely. Measurement. Using initial mid price. Nassim Nicholas Taleb (1997) defines slippage as the difference between the  average execution price and the initial midpoint of the bid and the offer for a given quantity to be executed. Using initial execution price. Knight and Satchell mention a flow trader needs to consider the effect of executing a large order on the market and to adjust the bid-ask spread accordingly. They calculate the liquidity cost as the difference between the execution price and the initial execution price. Example. The associated image depicts the Level II (Market Depth) quotes of the SPY ETF (Exchange-Traded Fund) at a given instant in time. The left hand side of the image  contains the market depth for the current BID prices and the right hand side of the image contains the market depth for the current ASK prices. Each side of the image contains three columns: The top left of the image represents the current BID price ($151.07) and the top right of the image represents the current ASK price ($151.08). At the $151.07 bid price point, there are 300 shares available (200 by the ARCA Market Maker and 100 by the DRCTEDGE). At the $151.08 ask price point, there are 3900 shares available (2800 by the ARCA  Market Maker and 1100 by the BATS Market Maker). This is typically represented in quote form as: $151.07 X 300 by $151.08 X 3900). To properly understand slippage, let's use the following example: Say, you (as a trader) wanted to purchase 20,000 shares of SPY right now. The problem here is that the current ASK price of $151.08 only contains 3900 shares being offered for sale, but you want to purchase 20,000 shares. If you need to purchase those shares now, then you must use a market order and you will incur slippage by doing so . Using a market order to purchase your 20,000 shares would yield the following executions (assuming no hidden orders in the market depth): The average purchase price of the above execution is $151.11585. The difference between the current ASK price ($151.08) and the average purchase price ($151.11585) represents the slippage. In this case, the cost of slippage would be calculated as follows: 20,000 X $151.08 - 20,000 X $151.11585 = $-717.00 Reverse slippage. Reverse slippage, as described by Taleb, occurs when the purchase of a large position is done at increasing prices, so that the mark  to market value of the position increases. The danger occurs when the trader attempts to exit his position. If the trader manages to create a squeeze large enough then this phenomenon can be profitable. This can also be considered a type of market making.