NexusFi: Find Your Edge


Home Menu

 





Help figuring out how to calculate a VWAP study in excel


Discussion in Traders Hideout

Updated
    1. trending_up 1,830 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
guerra503
Portland, OR
 
Posts: 8 since Mar 2021
Thanks Given: 3
Thanks Received: 8

Hello everyone,

I am very rusty with my logic and coding skills these days so hoping someone could help me get on the right track so I can calculate some statistics I am needing in excel.

Basically, what I am looking to do is calculate some statistics based on the VWAP to find out historically, on average how often does price close at each 1, 2, and 3 standard deviations above or below VWAP on any given day.

I think I understand how the basic vwap calculation works, but what I am confused about is how to implement it such that the VWAP will reset for each day of trading in excel like it normally is done.

I am pretty sure when I get that far, I could get the rest of what I need done fairly easily.


I was going to provide some links to images to show some specifics but because I have not posted here in the past, it will not allow me so I will describe my data as best as possible.

The data I am working with is hourly bars, where there are 24 bars in a day, the data is in descending order from newest to oldest, and a new day is signaled when the 17:00 hourly bar is the cell above the 15:00 hourly bar. Other than that, the data is in pretty standard format

Thanks for the help in advance. I will share the results of this study here once I am able to figure it out.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
Post-Summit Scorecard: $36M in May 15 Bets Settle Near-Z …
Prediction Markets & Event Contracts
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
Al Arabiya: US-Iran Draft Deal Within Hours Contains Hor …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
6 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,581 since Oct 2009
Thanks Given: 4,267
Thanks Received: 6,208


guerra503 View Post
Hello everyone,

I am very rusty with my logic and coding skills these days so hoping someone could help me get on the right track so I can calculate some statistics I am needing in excel.

Basically, what I am looking to do is calculate some statistics based on the VWAP to find out historically, on average how often does price close at each 1, 2, and 3 standard deviations above or below VWAP on any given day.

I think I understand how the basic vwap calculation works, but what I am confused about is how to implement it such that the VWAP will reset for each day of trading in excel like it normally is done.

I am pretty sure when I get that far, I could get the rest of what I need done fairly easily.


I was going to provide some links to images to show some specifics but because I have not posted here in the past, it will not allow me so I will describe my data as best as possible.

The data I am working with is hourly bars, where there are 24 bars in a day, the data is in descending order from newest to oldest, and a new day is signaled when the 17:00 hourly bar is the cell above the 15:00 hourly bar. Other than that, the data is in pretty standard format

Thanks for the help in advance. I will share the results of this study here once I am able to figure it out.

Have you tried to use absolute cell reference such as ...
$A1 Allows the row reference to change, but not the column reference.
A$1 Allows the column reference to change, but not the row reference.
$A$1 Allows neither the column nor the row reference to change.


Reply With Quote




Last Updated on May 23, 2022


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts