mortdiggiddy

Multi-Day VWAP V2

Updated from V1.

Chart the multi-day Volume Weighted Average Price ( VWAP ). Normally, the VWAP is tracked for the current day, from the first bar of the day (regular or extended session). The VWAP shows the current value of:

-> sum(hlc3 * volume , barsForDay) / sum( volume , barsForDay),

-> where 'barsForDay' is the total number bars that have elapsed during the day for the chart interval.

The multi-day version tracks the VWAP for N days back, by averaging the previous N - 1 day bars VWAP and the current VWAP for the current bar (chart interval).

This is very different that simply using a volume weighted moving average , since the closing VWAP values are used for the historical day bars. The results are interesting for intraday trades... especially for values of 1, 2, 3, 4, and 5 days.

Version 2 includes the closing VWAP for the previous day. There are enough instances where the price chooses to bounce from the previous day's closing VWAP value that it is worth discussing. Usually this value is at or near the daily pivot , but sometimes not. Circled in the chart are some areas of recent SPY bounces on the previous day's closing VWAP .

It seems that when the 5-Day VWAP and normal VWAP have "enough" percentage separation, that there can be good intraday swing opportunities using bounces off VWAP indicators. This is similar to waiting for Hourly/Daily/Weekly/Monthly/etc pivots to have "enough" separation to allow for swing setups. When pivots are "closely" spaced, odds are the price is range bound for the time period (daily range in the case of day pivots , etc).

Previous closing VWAPs can be plotted for all 5 of the original. As with my other scripts, I welcome all comments to spark new ideas that we can all benefit from.

Enjoy.
Skript med en öppen källkod

I sann TradingView-anda har författaren till detta skript publicerat det som öppen källkod, så att handlare kan förstå och verifiera det. Skål för författaren! Du kan använda den gratis men återanvändning av den här koden i en publikation regleras av våra Ordningsregler. Du kan göra den till favorit för att använda den i ett diagram.

Vill du använda det här skriptet i ett diagram?

Kommentarer

This script is replaced by:



The algorithm in this script is inappropriate.
+3 Svara
Hello mortdiggiddy, I find this indicator suits my need quite well, but I am wondering if VWAP in your script (H+L+C)/3?
If there is anywhere I can amend to only take Close?
Svara
Sir can you plz update this to v4?
Svara
Hello! Is this script for use with esignal? I gave it a shot but I'm receiving an error message. Thanks!
Svara
mortdiggiddy thedaytrader17
@thedaytrader17, Trading View...
+5 Svara