TradingView
ChartingCycles
23 Mar 2024 02:41

VWAP Spider 

S&P 500SP

Açıklama

The VWAP Spider indicator enhances the conventional Volume Weighted Average Price (VWAP) analysis by anchoring it to the first candle and incorporating an extensive series of standard deviation (SD) lines, extending up to +8 SDs with additional half-step increments. This configuration provides a more suitable set of lines for identifying support and resistance, distinguishing it from existing VWAP and SD indicators. Its design, featuring color gradients for fills and distinct labels for each line, aims to improve the utility and user experience.

Optimal Timeframes:
It is recommended for use on weekly or monthly resolutions to ensure all price and volume history is included.

Distinctive Features:
  • The indicator includes a more extensive array of SD lines than typically found in VWAP indicators, enhancing the depth of market analysis.
  • The visual presentation is optimized with color gradients and clear labeling, facilitating ease of use and integration into trading strategies.


Practical Use of the VWAP Spider:
  • SD Lines as Support and Resistance: Observe the interactions between the price and the SD lines closely. These can serve as dynamic support and resistance indicators, influencing trading decisions.
  • Analyzing Historical Price Action: Investigate how the price has historically interacted with the SD lines. Identify which lines have frequently acted as support and resistance in the past, as they will often continue to be revisited.
  • Strategic Application: Leverage insights from the interactions between price and SD lines to fine-tune entry and exit points. For example, a rebound from an SD line may suggest a strong entry point, while breaching an SD line could indicate a potential exit.


This indicator is freely available and open-source on TradingView for all. It is designed to help traders enhance their market analysis and strategic decision-making.

Sürüm Notları

Applied fix so that the standard deviation lines start on the first candle instead of the second.
Added the option for users to customize the VWAP line color.

Sürüm Notları

Minor visual enhancements & chart image update.

Sürüm Notları

Added labels to prior price action for easy identification.

Sürüm Notları

Removed the additional labels as they were causing issues.
Enabled all resolutions instead of just daily and above.
Yorumlar
Bearishness
i like it but it will work for daily chart, can you do 30 secs or 1 min or 5 mins chart? thanks.
ChartingCycles
Thank you, @Bearishness! I will post an update today that supports all timeframes.
JMF_Tattoo
Its still off by one candle, notice in your version, you are still defining the variance outside of the conditional block where the VWAP starts accumulating. this is causing the dev bands to be one candle behind. should read like so -

heres an image of my edit -


var float sumpv = na var float sumv = na var float mean = na var float variance = na var int length = na if (na(sumpv)) sumpv := ohlc4 * volume sumv := volume mean := ohlc4 variance := 0 length := 1 else sumpv := sumpv + ohlc4 * volume sumv := sumv + volume length := length + 1 mean := (mean * (length - 1) + ohlc4) / length variance := ((length - 1) * variance + (ohlc4 - mean) * (ohlc4 - mean)) / length avwap = sumpv / sumv dev = math.sqrt(variance)


Not trying to be rude, just letting you know that its off by a candle.

Your version -
ChartingCycles
Thanks @JMF_Tattoo! This is exactly why I make my scripts open-source. I will apply your fix to the next update.
JMF_Tattoo
@ChartingCycles, no prob. Glad to help. Great script regardless. I made the change and have been using it. I also removed the Daily only limitation, it works great on all timeframes and loads quick after making the change
Daha Fazla