TradingView
NeoButane
Sep 8, 2018 10:48 AM

Time Weighted Average Price (TWAP) 

Crude Oil FuturesNYMEX

Description

TWAP is a tool used by algorithm based traders that allows them to distribute their orders throughout the day without disturbing price or having their positions known to rival traders in the market.

It's similar to VWAP and serves the same function, except it lacks the volume aspect. This can be an issue when position entry/exit may be affected by slippage. The main benefit of TWAP is deciding how to distribute orders throughout the chosen timeframe.

However, just like the VWAP traders will normally use it as a moving average or target for price action to pull into.

There is an option to change the timeframe that TWAP is calculated on.


References:
empirica.io/blog/twap-strategy/
arxiv.org/ftp/arxiv/papers/1206/1206.5324.pdf
Comments
moneygoon
it repaints
U_P123
HI,
Thanks for the code. Any way to calculate & plot weekly twap starting from Friday?
VeloxTrader
Hey thanks for this indicator, good work! I've tried to add stdev bands to it but my small brain can't seem to figure it out.. Any change we might get a simple update with STDEV bands? Thanks :)
More