The VWAP is calculated using the following formula:
where:
PVWAP = Volume Weighted Average PricePj = price of trade jQj = quantity of trade jj = each individual trade that takes place over the defined period of time, excluding cross trades and basket cross trades.