OPEN-SOURCE SCRIPT

Time Weighted Average Price (TWAP)

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

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


My published indicators: tradingview.com/u/NeoButane/

Sorry if I haven't replied to your message yet, I'm a bit backlogged :)
更多:

免责声明