TradingView
Daveatt
23 paź 2023 11:35

VWAP (Any Anchor) 

E-mini Nasdaq-100 FuturesCME

Opis

Hello Traders,

Introduction:

The Volume Weighted Average Price (VWAP) is a powerful trading indicator used to gauge the average price at which an asset has traded, weighted by volume, over a specific period.
One of the key factors that can significantly impact the effectiveness of VWAP is the concept of "anchoring." In this TradingView indicator script description, we'll explore the concept of anchoring and how it's integrated into a customizable VWAP indicator.

Understanding Anchoring:

Anchoring in VWAP refers to selecting a specific point in time from which the VWAP calculation begins.
This "anchor point" serves as the starting reference for VWAP, and it can substantially impact the indicator's behavior and interpretation.
Anchoring allows traders to adapt VWAP to different trading strategies and scenarios.

Here are some common anchor points used in the script and their significance:

1. Time-Based Anchors: Traders often anchor VWAP to specific times of the trading day, such as the market open (e.g., 9:30 am EST) or close (e.g., 4:00 pm EST).
You could add in the script any time-based anchor you think is relevant for your trading.

2. Event-Based Anchors: Anchoring can also be based on specific market events.
For example, some traders anchor VWAP to events like "3 Consecutive Green Candles" or "Supertrend" direction changes.
Feel free to adapt the script here and add the relevant events-based anchor for your trading.

3. Multi-Timeframe Anchoring: Traders can anchor VWAP on different timeframes, allowing them to analyze price and volume interactions across various horizons.
This flexibility is especially valuable for swing traders adapting to longer-term trends.

Anchor Selection

Traders can choose from various anchor points, including time-based, event-based, and even an "External Connector" for flexibility in adapting VWAP to specific scenarios.
The External connector is the output from another script used in this VWAP script.
Your script may have a condition being “true” whenever a signal is printed - you can use this signal as the anchor for the VWAP.

Conclusion:

Understanding anchoring in VWAP is essential for traders using this indicator effectively.
Choosing and customizing anchor points empowers traders to adapt VWAP to their specific trading styles and strategies.
Whether focused on intraday precision or analyzing longer-term trends, a customizable VWAP indicator with flexible anchoring options can be valuable to your trading toolkit.

Tailor your VWAP to your unique needs and gain deeper insights into market trends and price action.

Made with love
Dave
Komentarze
ABaldetti
Great VWAP, been looking for something like this, if you can it would be nice to have the deviation bands like the standard TV indicator and the ability to select a custom time according to the user chart time (timezone). I tried but failed.
Daveatt
@ABaldetti, for the user chart timezone, you could add the timezone in the hour() and minute() functions
tradingview.com/pine-script-reference/v5/
Example:

isNewPeriod = switch anchor "8am" => hour(time, "UTC-4") == 8 and minute(time, "UTC-4") == 0 ...


2/ For the standard deviation (Bollinger?) bands, it's easy to add them in this script.
Not sure how you intend to use them with the VWAP though?
Pratik_4Clover
Thanks!
KinetiCapital
well done. wondering if there is way to create cut off time for it stop calculating like say 4pm EST. this way lines do not connect
Więcej