chart_d = tsl.get_historical_data('KALYANKJIL','NSE','DAY')
        if chart_d is  None or  chart_d.empty:
            return None
        chart_d["d_vwap"] = ((chart_d["high"] + chart_d["low"] + chart_d["close"]) / 3 * chart_d["volume"]).cumsum() / chart_d["volume"].cumsum()
        print(f'chart_d {chart_d}')
Using Code base : 568.86724
Dhan TV : 524.72
Any suggestion… How to get correct VWAP for daily?
@Tradehull_Imran
             
            
              
              
              
            
           
          
            
            
              Hi @Sapanaben_Patel ,
The VWAP calculation seems to be right, but the numbers days to be considered must be sliced, checked. and only those number of days must be passed for calculation.
             
            
              
              
              
            
           
          
            
            
              HI @Tradehull_Imran
Thanks for quick response.
Can you please provide example how to get VWAP using sliced.
- 
Historical data
Week- VWAP
Day - VWAP
1 - Hour - VWAP
 
- 
Intraday data - current date
1 - Hour - VWAP
30 - Min - VWAP
15 - Min - VWAP
 
             
            
              
              
              
            
           
          
            
            
              Hi @Tradehull_Imran ,  @Mohseen_Usmani
Anyone know, How to calculate VWAP for Intraday 15 min or 1 hrs?