| Market Profile Are you a market profile trader? Post here. |
![]() | | Tweet | |
| | #217 | ||
| Re: Trading with Market Statistics. IV Standard Deviation Quote:
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 | |||
| |
|
![]() |
| Thread Tools | |
| Display Modes | 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 |