Welcome to the Traders Laboratory Forums.
Market Profile Are you a market profile trader? Post here.

Reply
Old 01-11-2012, 03:49 AM   #217

Join Date: Jul 2011
Posts: 2
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Trading with Market Statistics. IV Standard Deviation

Quote:
Originally Posted by robertotrader »
Try to contact CQG about the VWAP pac, they developed it but I'm not sure that their SD bands are correct.
Thanks Roberto, contacted them and they've been helpful...however, was wondering if anyone could cast their eye over the code and just confirm that there are no glaring errors. It seems to be correct to me, just slightly puzzled as to how it is actually acting on my chart though as it seems to be fanning out i.e. they appear to expand and contract similar to a bollinger band (but not as obviously) which I never expected to be honest

On CQG there are curves for each of the 7 lines, but code all the same on each bar last line has different DevMultiplier option and either add or subtract. The below is code for 1st Deviation line:

Vol1:=IF( HasVal(Vol(@)) AND Vol(@) > 0, Vol(@), 0) ;
priceX:= IF(price = 1, Close(@), IF(price = 2, High(@), IF(price = 3, Low(@), IF(price = 4, Mid(@), IF(price = 5, HLC3(@), IF(price = 6, Avg(@), IF(price=7, Open(@), 0) ) ) ) ) ) ) ;

Bars1:=IF((BarsSince(HasV al(@)=0,1,10000) WHEN BarIx(@,StartOfDay)=0)> 0, BarIx(@,StartOfDay)+1, BarsSince(HasVal(@)=0,1,1 0000)) ;

VWAP1:= Sum(priceX* Vol1,Bars1)/ Sum( Vol1,Bars1);

Variance1:= Sum( (Vol1/ Sum( Vol1,Bars1))* Power((priceX-VWAP1),2.00000),Bars1);

StdDev1:= SqRoot( Variance1);

VWAP1+(StdDev1*DevMultipl ier1)
DevMultiplier1 is an on chart option where you can specify what multiplier to use

ON CQG there are curves for each of the 7 lines, code all the same, just different DevMultiplier option and either add or subtract. The below is just for the 1st Deviation line as an example
TMc1908 is offline  
Reply With Quote

Reply

Thread Tools
Display Modes 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 I. Volume Histogram jperl Market Profile 36 02-21-2012 06:23 PM
Trading with Market Statistics III. Basics of VWAP Trading jperl Market Profile 73 01-03-2012 08:06 AM
Standard deviations & Odds rayk Market Profile 2 10-07-2006 11:13 AM
Trading in a Dull Market Soultrader Technical Analysis 0 09-06-2006 11:44 AM

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