How to calculate VWAP deviation bands?

lol.

You have all of the information you need in the statement "VWAP +/- 2 standard deviations". If you can't figure it out from there, perhaps you should stick to using the premade indicators.

I'd google VWAP, then I'd google standard deviation.
It doesn't help that different online resources have different formulas for calculating the bands.

It doesn't appear to be as simple as finding the standard deviation of the VWAP.
 

Attachments

  • Screen Shot 2019-11-22 at 1.21.32 PM.png
    Screen Shot 2019-11-22 at 1.21.32 PM.png
    175 KB · Views: 92
The closest I've been able to get is using the standard deviation of closing price
 

Attachments

  • Screen Shot 2019-11-22 at 1.25.10 PM.png
    Screen Shot 2019-11-22 at 1.25.10 PM.png
    177.7 KB · Views: 83
My question is, how do I actually calculate the bands? That page doesn't do a good job at explaining how to actually perform the calculations.

I think the problem you might be having is that the standard deviation formula uses an average price. What average are you using? I use session VWAP, so it is reset at the open (9:30AM).

Your daily charts are going to use the daily VWAP data and find an average ( close? ). It makes a big difference what you use......
 
Thanks. I've already seen this link and stared at its contents for hours.

My question is, how do I actually calculate the bands? That page doesn't do a good job at explaining how to actually perform the calculations.

But this link exactly do the job. Screenshot attached.

- N is number of observations, to make it simpler - how many units you have since beginning of observation (let's say you use 5min chart, and there is 1 hour after session start, N=12)
- i is iteration for each unit (1,2,3...N)
- xi is VWAP for iteration i
- x with dash is average VWAP since start of observation
 

Attachments

  • Zrzut ekranu 2019-11-22 o 20.09.19.png
    Zrzut ekranu 2019-11-22 o 20.09.19.png
    100.8 KB · Views: 330
I think the problem you might be having is that the standard deviation formula uses an average price. What average are you using? I use session VWAP, so it is reset at the open (9:30AM).

Your daily charts are going to use the daily VWAP data and find an average ( close? ). It makes a big difference what you use......
I'm not sure what you mean by average price. Do you mean average close? Or average VWAP?

VWAP is reset at open. Calculating the VWAP is not an issue. It's the bands I don't understand.
 
But this link exactly do the job. Screenshot attached.

- N is number of observations, to make it simpler - how many units you have since beginning of observation (let's say you use 5min chart, and there is 1 hour after session start, N=12)
- i is iteration for each unit (1,2,3...N)
- xi is VWAP for iteration i
- x with dash is average VWAP since start of observation
Thanks for telling me what all the variables are -- the article didn't explain it well.

When I plug all the numbers into the formula, I'm still getting the wrong results. Unless I'm doing the math completely wrong (which is entirely possible).
 

Attachments

  • Screen Shot 2019-11-22 at 1.57.50 PM.png
    Screen Shot 2019-11-22 at 1.57.50 PM.png
    179.3 KB · Views: 66
I will tell you this. In ThinkorSwim you can go into the VWAP study and just view the source code. It will tell you what they are using.
 
I will tell you this. In ThinkorSwim you can go into the VWAP study and just view the source code. It will tell you what they are using.
Thanks so much for sharing this. I had no idea this was possible. The code makes a lot more sense than the other articles I've seen.
 
No problem. I have been using all of their source code to build indicators and analysis tools.

thinkScript is an incredibly powerful tool for traders trying to get an edge.
 
Thanks so much for sharing this. I had no idea this was possible. The code makes a lot more sense than the other articles I've seen.

Out of curiosity - could you paste this code with standard deviation bands calculation in ToS ?

I don't use it, but made also this excel calculation after your post and I want to check where is the difference.
 
Back
Top