# What is the correct way to calculate VWAP and is Average Price the same as VWAP?

**URL:** https://tradingqna.com/t/what-is-the-correct-way-to-calculate-vwap-and-is-average-price-the-same-as-vwap/84316
**Category:** Algos, strategies, code
**Created:** [July 17, 2020, 8:41pm UTC](https://tradingqna.com/t/what-is-the-correct-way-to-calculate-vwap-and-is-average-price-the-same-as-vwap/84316 "2020-07-17T20:41:24Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![MohammedFaisal](https://tradingqna.com/user_avatar/tradingqna.com/mohammedfaisal/32/3680_2.png) [@MohammedFaisal](https://tradingqna.com/u/MohammedFaisal)
#### Post date: [July 21, 2020, 10:46am UTC](https://tradingqna.com/t/what-is-the-correct-way-to-calculate-vwap-and-is-average-price-the-same-as-vwap/84316/2 "2020-07-21T10:46:31Z")

</div>

@Shashank_Shirke, Yes, both ATP(Average Traded Price) and VWAP(Volume weighted average price) are the same by definition.  
The ATP is received from the exchange and is the volume-weighted average price of all trades at the exchange, while the VWAP on the chart is calculated on our end based on the ticks received from the exchange.

> [@Shashank\_Shirke](#):
>
> General observation shows that ATP (in market depth) and VWAP (on charts) are different values for most of the time.

We don’t receive ticks for all trades executed on the exchange. For example, SBIN might have 1000 trades executed in 1 second but the broker receives only 1 or 2 ticks for that second. Since the chart candles and VWAP are built using this data, not all trades are captured leading a difference. The number of ticks and the accuracy is explained in detail in this [thread](https://tradingqna.com/t/why-does-the-same-technical-charts-for-the-same-stock-from-nse-tame-google-finance-yahoo-finance-amibroker-not-match/1688/3).  
This difference can be found in 1 min charts. Over longer duration charts, you will see a lower variance.

Hope this helps!

---

_[View the full topic](https://tradingqna.com/t/what-is-the-correct-way-to-calculate-vwap-and-is-average-price-the-same-as-vwap/84316)._
