Skip to content
All library documents

Modeling Market Impact in VWAP Execution Backtests

Article Quant Q&A · Author: ali_bahoo

Summary

The document discusses why a VWAP execution backtest can look unrealistically favorable if it assumes trades have no effect on market prices. Comparing simulated fills with a benchmark such as VWAP, arrival price, or the best bid and offer does not capture the full cost of trading when the simulated order itself may move the market. Market impact is commonly incorporated alongside slippage and transaction costs.

Suggested models apply a fixed or variable cost penalty to simulated prices. Variable penalties can increase with trade size, potentially using a nonlinear relationship, and may vary across instruments. The discussion also emphasizes that impact grows with order size and falls as liquidity increases; spreading execution through time can reduce this cost without eliminating it. Realistic penalty values require substantial post-trade analysis and may be proprietary. The examples and suggestions are conceptual: they do not provide calibrated parameters or a validated universal model. The source also notes that other algorithms may identify and exploit predictable VWAP behavior.

Key ideas

  • A VWAP benchmark alone does not account for the market impact caused by the simulated order.
  • Backtests can model impact through fixed or variable price penalties.
  • Variable penalties may rise nonlinearly with order size and differ by instrument.
  • Market impact tends to increase with trade size and decrease with asset liquidity.
  • Reliable transaction-cost parameters require post-trade analysis, and other algorithms may exploit predictable execution patterns.

Tags

Full text
# What is an effective way of backtesting VWAP execution?


# What is an effective way of backtesting VWAP execution?












From Optimal Trading Strategies :

> There are two main reasons why traders execute orders using a VWAP trading strategy. First, a VWAP strategy is the trading strategy that minimizes market impact cost. Traders executing orders utilizing VWAP strategies are interested in participating with market volumes so to cause the least disruption to the supply-demand imbalance in each period. Second, for many traders their execution performance is measured against the VWAP benchmark. An average execution price more favorable than the VWAP price benchmark is considered high-quality performance while an average execution price less favorable than the VWAP benchmark is considered inadequate performance.

But, when it comes to backtesting, the market impact is thus assumed to be zero. One is assuming he does not affect the market as the VWAP benchmark price stays untouched. So how can one backtest his VWAP strategy effectively and more realistically?

## Answer by chrisaycock (score 6, accepted)

https://quant.stackexchange.com/a/1134

This isn't exclusive to VWAP; any assumed trade price (NBBO, Arrival Price, etc) has the same vulnerabilities. Many shops often lump market impact with slippage and transaction costs when modeling the difference between the ideal price and the realized price.

To model the impact during a backtest for a given trade price, assess a penalty:

- This penalty can be fixed (X basis points added to each buy price) or it can be variable (Y percentage extra cost for each buy price). One could use a combination of both.

- For variable penalties, the percentage can be a single number for all trading activity, or it can grow quadratically with respect to the size of the trade. An aggressive penalty models removing liquidity in the order book.

- To be really swanky, one could have a different penalty for each unique instrument in the portfolio.

Many shops consider their transaction-cost models to be very proprietary. It takes a lot of post-trade analysis to determine proper values for X and Y.

## Answer by Rich C (score 4)

https://quant.stackexchange.com/a/1138

To get a feel for it think about an extreme scenario. Suppose I have an order to buy $100bln VWAP in IBM over the course of one day. My "cost" relative to VWAP will be near zero, b/c I will be on the buy side of every trade that day. However, my market impact will be extremely high b/c IBM will fall like a rock the next day, leaving me with huge losses. This is your true cost.

The bottom line is trading will create impact - that is part of your cost. It is increasing in increasing trade size and decreasing in increasing liquidity of the asset. VWAP merely spreads the trade out to reduce the impact. Look at Almgren and Chriss for a discussion of transaction cost functions, or talk to the provider of your VWAP algo for more details.

## Answer by Meh (score 0)

https://quant.stackexchange.com/a/1140

A factor to take into account: there are algorithms searching for other VWAP algorithms present in the market and then gaming them.

http://www.qsg.com/PDFReader.aspx?PUBID=722

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.