If you have tradestation use their Bollinger Band code and substiute vwap for price.
John
John
Quote from IronFist:
I don't.
But I tried plotting BBands of the vwap and got the same narrow useless junk that I got when I tried plotting SDs of the vwap.
Sorry about the identical reference, but you are still applying VWAP across periods longer than a single day, which may or may not be valid. The original definition of VWAP is strictly intraday.Quote from dtrader98:
Yeah, thanks for pointing out the same reference I linked to way back on the 2nd post.
....
case closed... I think.
Quote from tmarket:
Sorry about the identical reference, but you are still applying VWAP across periods longer than a single day, which may or may not be valid. The original definition of VWAP is strictly intraday.
Quote from dtrader98:
Iron Fist, looking at your plot, I don't think the problem is how you are caclulating the standard deviations. Rather it is in how you are calculating VWAP. That doesn't look like any kind of "average" of the price series you are showing.
I showed the VWAP equation on an earlier post and it's also on the site that has been referenced a few times.
Quote from IronFist:
I'm using the VWAP study in SierraChart. I'm pretty sure it's correct.
Quote from dtrader98:
Thinks about it this way. The definition for VWAP at any time n, is the series: sum of price*vol / sum vol over n steps. Well, for the very 1st tick of data
(lets call that tick n= 1), you should be able to approximate it as just VWAP ~
P1*V1/V1 at time n= 1. If you agree with that,
then at that time, VWAP is simply ~P, since the Vs cancel out.
Therefore at the 1st time instance (tick/bar/whatever you are using), shouldn't your 1st VWAP value be very close to P (or the average of P on that tick)?
If you agree with this reasoning so far, then let me ask you this... Why is it that your 1st value of VWAP is way above the 1st price tick (like a huge offset)?
![]()
Find any single (correct) example on the web of VWAP that has the first VWAP point so far away from the 1st price bar.
I doubt you will.
Can you argue against that? If so, I'd like to see an example. If not, then there is likely a problem with the way your program (or you) are calculating the VWAP values.
dT
Quote from IronFist:
The left side of that chart was around 11am CST.
VWAP calculation in SierraChart starts at midnight (based on my suggestion they're going to allow that to be modified in a future release).
On this 5min YM chart you can see that VWAP resets to the first trade at midnight CST when it rolls over.