VWAP rendering issue in TV Dhan

Hi,

I’ve noticed some unusual behavior on the charts at tv.dhan.co. I’m using the 30-second time frame with VWAP enabled. However, the VWAP line does not appear until I scroll back to the first candle of the trading session.

For example, today (15th May) at 7:00 PM, I had to manually scroll back to the 9:15 AM candle for the VWAP to start rendering.

It seems that the VWAP is not being calculated or displayed unless the first candle of the day is loaded. Could you please look into this and resolve the issue?

VWAP not rendered when first candle is not loaded.

When day;s first candle is loaded

Checked the same with 1min/2min/3min time frame. same behaviour. VWAP is not rendered untill, 1st candle data rendered in chart.

Thanks

Hi @vinay_sd17, By default, the anchor period for VWAP (Volume Weighted Average Price) is set to session, which means it calculates values based on intraday data starting from the first candle of the current trading session.

Unlike indicators like EMA (Exponential Moving Average) that use a predefined number of past candles (e.g., 20 or 50) regardless of the session, VWAP resets at the beginning of each session. Therefore, in order to view VWAP values correctly, the chart must load from the first candle of the day.

Hi @Mohseen_Usmani, I got that part. What I’m highlighting is that the VWAP isn’t rendering on the chart during the intraday session, and I have to manually scroll back to the first candle of the day to get it to appear — which makes it quite unusable in its current form.

PS: In earlier, TV I do not see this issue.

I also tried adding Anchored VWAP and set the anchor period to the start of the day — in that case, the VWAP renders correctly. It seems like the issue might be due to the candlestick data being spliced before it’s passed to the library, which is affecting the standard VWAP rendering.

Hi @vinay_sd17, yes, we understand your feedback to auto-load the current session, we have shared this feedback with our team for further optimisation. stay tuned for more enhancements.

1 Like

I am not able to get VWAP line at all in dhan tv chart for any interval. I tried scrolling as well. Please can someone help me urgently with steps needed to show VWAP line in NIFTY chart. Thank you.

Hey @saurabha213

VWAP is not available on Nifty charts, as there is no underlying volume in NIFTY. As NIFTY is an index and not directly tradeable, VWAP cannot be plotted.

@vinay_sd17 yes, this is an issue on the library side, have raised it to the trading view team as well.

Hey @saurabha213

TradingView.com and some other platforms simply add the volume of all constituents of that Index and show it on the charts. We believe it is not the best way to show volume of an index, as it doesn’t represent how much volume is traded on the level of the index.

Would suggest you to refer to Nifty Futures chart for VWAP analysis.

Noted. Thank you for response.