I was getting sick of the useless VWAP indicator on Trading View and wrote something that is more comprehensive and quite interesting, in fact: candles for VWAP.
It uses the original open/high/low/close and combines them as you would the original hlc3 calculation, but separately, to draw the candles as a shadow of the current price.
There are a few parameters to make it more flexible: source, resolution timeframe, volume length, and moving average length.
Volume Length (default: 5) will determine the candle calculations, cumulative sum of the past X bars.
Moving Average Length (default: 9) will determine the simple moving average (sma) length for the true VWAP (hlc3*volume/cumulative volume)
Source will change the Moving Average VWAP from hlc3 to whatever you want.
Resolution will attune the candles and Moving Average VWAP line to a different periodicity.
Just to be a pain, I also included the old VWAP from Trading View, as a comparison. You can disable it from the Style settings.
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.