Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Reply
VWAP Indicator with 1SD and 2SD bands Details »»
VWAP Indicator with 1SD and 2SD bands
Platform: , by dbntina dbntina is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Platform: Unknown Rating: (5 votes - 4.20 average)
Released: 08-03-2007 Last Update: Never Installs: 0
 
No support by the author.

Guys I am not a TS coding guru by any means...still new at it but wanted to share this code if anyone else was interested. Just wrote this code for myself to keep up with JPERL's threads on Market Statistics. It plots the VWAP, and 1st and 2nd Standard Deviation bands. It lines up with his numbers within a tick or two so I think it is working correctly.

Any other TS coders out there please take a look because it can probably be improved upon.

This is my first post of a file so if I screwed something up...be gentle!

Hope this helps,

dbntina
boxmeister

Download Now

File Type: eld DBVWAP_SD.ELD (5.0 KB, 1458 views)

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.

Similar Indicator
Mod Developer Type Replies Last Post
TS Tick by Tick PVP Plotted with VWAP and SD Bands dbntina Trading Indicators 51 11:54 AM 02-18-2012
The Following 13 Users Say Thank You to dbntina For This Useful Post:
ClocharT (01-02-2011), cunparis (03-29-2010), hawk_7_7 (12-04-2008), mb3000 (06-21-2009), opmtraders (12-26-2008), proton242 (02-28-2011), RomanFx (07-28-2009), ronnn777 (02-21-2009), Tams (05-04-2009), TIKITRADER (08-06-2009), vero (08-22-2010), wuxw (09-08-2011)

Comments
Old 01-11-2008, 02:55 AM   #58

Sparrow's Avatar

Join Date: May 2007
Location: Vienna/Austria
Posts: 306
Ignore this user

Thanks: 86
Thanked 24 Times in 18 Posts

Re: VWAP Indicator with 1SD and 2SD bands

My suspission is that the TS version doesn't use the real average in the SD calculation, however I haven't invested a lot of time in understanding the code.
Quote:
PriceW = PriceW + currVol*avPrice;
VolumW = VolumW + currVol ;
VolWAPValue = PriceW / VolumW;
.
.
.
diffPc = avPrice[ii]-VolWAPValue;
e.g. avg of 9/5 + 5/3 not equal 14/8;

My NT version SDs look very narrow compared to the others, although the 1st SD has held up price very well ... most likely a bug somewhere.

Last edited by Sparrow; 01-11-2008 at 03:05 AM.
Sparrow is offline  
Reply With Quote
Old 01-11-2008, 09:34 AM   #59

Sparrow's Avatar

Join Date: May 2007
Location: Vienna/Austria
Posts: 306
Ignore this user

Thanks: 86
Thanked 24 Times in 18 Posts

Re: VWAP Indicator with 1SD and 2SD bands

The VWAP has a very long memory because it hasn't got a period, that's why it takes a whole lot to change the width of the SDs after some time.
Ensign doesn't look so different from the NT version, problem is that if one SD is off the error gets multiplied with each next SD. Small differences can have a huge impact.

Therefore it would be interesting to know if the VWAP has been setup equally in all charts. The only parameter is start time, so nothing much to choose from.
Just trying eliminate one source of error here.

Cheers
Sparrow is offline  
Reply With Quote
Old 01-11-2008, 05:54 PM   #60

Join Date: Mar 2007
Location: toronto
Posts: 14
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: VWAP Indicator with 1SD and 2SD bands

I haven't tried the VWAP from the link trunner supplied (yet). That one is a design your own study. Ensign has added vwap as a standard study now, so there should no longer be a need to use the dyo. Although, I will try it over the weekend. I would have thought the ensign designers would have compared the two.

As for jperl's version. I have asked him he said there are minor differences between his version and the built in vwap study in ensign (I took this as he developed his own study by coding it himself). I don't know if his JAN 10 chart looks like mine. JPERL, if you are reading...do you mind making a comment?

It looks like we don't know what the "real" one should look like (I guess the institutional traders' version)...how are we going to figure this out? I guess we can compare all of ours together...can others post their vwap FOR JAN-10? With the start time being the globex open of 4:30pm on Jan9?
lj2500 is offline  
Reply With Quote
Old 01-11-2008, 08:24 PM   #61

jperl's Avatar

Join Date: Sep 2006
Location: Rochester,NY
Posts: 359
Ignore this user

Thanks: 2
Thanked 362 Times in 74 Posts

Re: VWAP Indicator with 1SD and 2SD bands

Quote:
Originally Posted by lj2500 »
I haven't tried the VWAP from the link trunner supplied (yet). That one is a design your own study. Ensign has added vwap as a standard study now, so there should no longer be a need to use the dyo. Although, I will try it over the weekend. I would have thought the ensign designers would have compared the two.

As for jperl's version. I have asked him he said there are minor differences between his version and the built in vwap study in ensign (I took this as he developed his own study by coding it himself). I don't know if his JAN 10 chart looks like mine. JPERL, if you are reading...do you mind making a comment?

It looks like we don't know what the "real" one should look like (I guess the institutional traders' version)...how are we going to figure this out? I guess we can compare all of ours together...can others post their vwap FOR JAN-10? With the start time being the globex open of 4:30pm on Jan9?
Can't comment at this time because I am out of town and won't be back until Jan. 15th. If someone reminds me, I will take a look at the data when I get back.
__________________
JERRY

---I'm going to trade til I'm 100, or die trying----
jperl is offline  
Reply With Quote
Old 01-16-2008, 05:45 AM   #62

BlowFish's Avatar

Join Date: Mar 2007
Location: In Da House
Posts: 3,292
Ignore this user

Thanks: 129
Thanked 1,054 Times in 702 Posts

Re: VWAP Indicator with 1SD and 2SD bands

Where people some times come unstuck is the weighting. As the volume changes every single data element needs re-wighting taking into account the new total volume.

Cheers.
BlowFish is offline  
Reply With Quote
Old 01-17-2008, 12:57 AM   #63

Join Date: Oct 2006
Location: Germany
Posts: 21
Ignore this user

Thanks: 1
Thanked 3 Times in 2 Posts

Question Re: VWAP Indicator with 1SD and 2SD bands

Thank you guys for the VWAP Bands!

Has anybody a ELD for the developing PVP for TS?

Cheers,
cosmic
cosmic is offline  
Reply With Quote
Old 01-26-2008, 01:58 PM   #64

jperl's Avatar

Join Date: Sep 2006
Location: Rochester,NY
Posts: 359
Ignore this user

Thanks: 2
Thanked 362 Times in 74 Posts

Re: VWAP Indicator with 1SD and 2SD bands

I have had a chance to take a look at the Ensign internal plot for VWAP. To be clear, I do not use this code, but wrote my own using Ensigns ESPL language.
Here is what I found:

For VWAP, Ensigns computation and mine are dead nuts on. No difference.
For the SD of the VWAP, there appears to be minor differences between my code results and Ensigns for most charts that I have looked at, EXCEPT FOR ES DATA of JAN 10. The comparison is shown in the two charts below:

In the first 1 min chart for the time period from the 9:30 EST open to about 11:30, the SD's are very close.
HOWEVER, from about 11:30 on, there is considerable disagreement as shown in the second chart.
I do not know the source of this disagreement, but it appears to be related to the large increase in volume occurring after 11:30.
I have submitted this info to Howard Arrington to look at, but I have not heard back from him.
If any of you use ensign, you might wish to nudge him about this to get a response.
Attached Thumbnails
VWAP Indicator with 1SD and 2SD bands-esjan10_930.jpg   VWAP Indicator with 1SD and 2SD bands-esjan10_1130.jpg  
__________________
JERRY

---I'm going to trade til I'm 100, or die trying----
jperl is offline  
Reply With Quote
Old 01-26-2008, 02:52 PM   #65

Join Date: Feb 2007
Location: US
Posts: 314
Ignore this user

Thanks: 86
Thanked 206 Times in 89 Posts

Re: VWAP Indicator with 1SD and 2SD bands

Thank you very much for the update and explanation, Jerry. Attached please find two plots of the same period in question, based on TS data and DBtina VWAP TS code, one with start time of 0930 and the other with start time of 0000 EST. The DBtina based code generated similar results to your ESPL study.

However, VWAP & SDs were about 1 point lowered with start time calculation at midnight most likely because of substantial volume prior to RTH (regular hrs).
Attached Thumbnails
VWAP Indicator with 1SD and 2SD bands-es-jan-10-2008-01-26_144017.png   VWAP Indicator with 1SD and 2SD bands-es-jan-10-start-time-0000  
thrunner is offline  
Reply With Quote

Reply

Tags
vwap

Thread Tools
Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trading With Market Statistics.II The Volume Weighted Average Price (VWAP). jperl Market Profile 65 02-25-2012 04:02 PM
Trading with Market Statistics III. Basics of VWAP Trading jperl Market Profile 73 01-03-2012 08:06 AM
Question regarding Bollinger Bands Robert Technical Analysis 22 08-08-2009 10:37 PM
Is the RSI indicator any good? Lisa Technical Analysis 14 04-27-2008 12:41 PM

All times are GMT -4. The time now is 05:28 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.