Skip to content
All library documents

TWAP Execution and an OHLC-Based Average with Deviation Bands

Article ProRealCode

Summary

The document explains time-weighted average price execution as a way to divide a large order into smaller trades placed at regular intervals over a chosen period. The goal is to keep the average fill price near the period’s time-weighted average while reducing the market impact of placing the full order at once. It also presents a separate calculation that averages each bar’s open, high, low, and close, then averages those values across twenty bars. A standard-deviation measure over a stated 200-period window is used to draw bands one, two, and three deviations above and below that average.

The bands are an indicator-style calculation, while TWAP execution is an order-scheduling approach; the document does not establish that the bands improve execution. It provides no empirical tests, market-impact estimates, or guidance on choosing order size, intervals, or execution horizon. Results will depend on market liquidity and price movement, and evenly spaced orders can still incur costs or miss favorable execution opportunities.

Key ideas

  • TWAP execution splits a large order into smaller trades placed at regular time intervals.\nThe stated aim is to approach the period’s time-weighted average price while limiting market impact.\nThe accompanying calculation averages OHLC values over twenty bars and adds deviation bands based on a 200-period measure.\nThe document supplies no tests or evidence that the bands improve execution quality.\nLiquidity, price changes, order size, and scheduling choices can affect actual execution.

Tags

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