indiTraders - Forum for the Active Indian Trader  

Go Back   indiTraders - Forum for the Active Indian Trader > Tools > Software > Tradestation

Reply
 
Bookmark and Share LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-01-2014, 03:14 PM
nTupLe2 nTupLe2 is offline
Regulars
 
Join Date: Nov 2013
Location: kolkata+WB/Country
Posts: 216
Thanks: 172
Thanked 143 Times in 96 Posts
nTupLe2 will become famous soon enoughnTupLe2 will become famous soon enoughnTupLe2 will become famous soon enough
Default Volatility Cloud

HI


http://www.tradestation.com/en/educa...-volatility-p2

can anyone check it's performance ?i imported ELD but in chart it is not appearing requesting for small help in MC8.



Code:
//TradeStation Labs
//Frederic Palmliden, CMT
//April, 2011
//TSLabs@TradeStation.com

//This indicator displays a 24-hour volatility map.  The time period covered in the volatility calculation 
//can be changed in the indicator's inputs.  The time interval for the chart needs to be set to 60 minutes 
//for proper display.

Inputs: StudyStartDate     ( 1060331 ),
		StudyEndDate       ( 1110331 ),
		DisplayColor       ( Darkblue );
       
Vars: StartVal           ( 0 ),
	  EndVal             ( 0 ),
	  Array1Count        ( 0 ),
	  Array2Count        ( 0 ),
	  Array3Count        ( 0 ),
	  Array4Count        ( 0 ),
	  Array5Count        ( 0 ),
	  Array6Count        ( 0 ),
	  Array7Count        ( 0 ),
	  Array8Count        ( 0 ),
	  Array9Count        ( 0 ),
	  Array10Count       ( 0 ),
	  Array11Count       ( 0 ),
	  Array12Count       ( 0 ),
	  Array13Count       ( 0 ),
	  Array14Count       ( 0 ),
	  Array15Count       ( 0 ),
	  Array16Count       ( 0 ),
	  Array17Count       ( 0 ),
	  Array18Count       ( 0 ),
	  Array19Count       ( 0 ),
	  Array20Count       ( 0 ),
	  Array21Count       ( 0 ),
	  Array22Count       ( 0 ),
	  Array23Count       ( 0 ),
	  Array24Count       ( 0 ),
	  MyMove             ( 0 ),
	  StandardDevVal1    ( 0 ),
	  StandardDevVal2    ( 0 ),
	  StandardDevVal3    ( 0 ),
	  StandardDevVal4    ( 0 ),
	  StandardDevVal5    ( 0 ),
	  StandardDevVal6    ( 0 ),
	  StandardDevVal7    ( 0 ),
	  StandardDevVal8    ( 0 ),
	  StandardDevVal9    ( 0 ),
	  StandardDevVal10   ( 0 ),
	  StandardDevVal11   ( 0 ),
	  StandardDevVal12   ( 0 ),
	  StandardDevVal13   ( 0 ),
	  StandardDevVal14   ( 0 ),
	  StandardDevVal15   ( 0 ),
	  StandardDevVal16   ( 0 ),
	  StandardDevVal17   ( 0 ),
	  StandardDevVal18   ( 0 ),
	  StandardDevVal19   ( 0 ),
	  StandardDevVal20   ( 0 ),
	  StandardDevVal21   ( 0 ),
	  StandardDevVal22   ( 0 ),
	  StandardDevVal23   ( 0 ),
	  StandardDevVal24   ( 0 ),
	  DateCondition      ( False );
	
Array:  Array1[] ( 0 ),  Array2[] ( 0 ),  Array3[] ( 0 ),  Array4[] ( 0 ),  Array5[] ( 0 ), 
	    Array6[] ( 0 ),  Array7[] ( 0 ),  Array8[] ( 0 ),  Array9[] ( 0 ), Array10[] ( 0 ),
	   Array11[] ( 0 ), Array12[] ( 0 ), Array13[] ( 0 ), Array14[] ( 0 ), Array15[] ( 0 ),
	   Array16[] ( 0 ), Array17[] ( 0 ), Array18[] ( 0 ), Array19[] ( 0 ), Array20[] ( 0 ),
	   Array21[] ( 0 ), Array22[] ( 0 ), Array23[] ( 0 ), Array24[] ( 0 );

Array_SetMaxIndex( Array1,  15000 );
Array_SetMaxIndex( Array2,  15000 );	
Array_SetMaxIndex( Array3,  15000 );
Array_SetMaxIndex( Array4,  15000 );	
Array_SetMaxIndex( Array5,  15000 );
Array_SetMaxIndex( Array6,  15000 );	
Array_SetMaxIndex( Array7,  15000 );
Array_SetMaxIndex( Array8,  15000 );	
Array_SetMaxIndex( Array9,  15000 );
Array_SetMaxIndex( Array10, 15000 );	
Array_SetMaxIndex( Array11, 15000 );
Array_SetMaxIndex( Array12, 15000 );	
Array_SetMaxIndex( Array13, 15000 );
Array_SetMaxIndex( Array14, 15000 );	
Array_SetMaxIndex( Array15, 15000 );
Array_SetMaxIndex( Array16, 15000 );	
Array_SetMaxIndex( Array17, 15000 );
Array_SetMaxIndex( Array18, 15000 );	
Array_SetMaxIndex( Array19, 15000 );
Array_SetMaxIndex( Array20, 15000 );
Array_SetMaxIndex( Array21, 15000 );
Array_SetMaxIndex( Array22, 15000 );	
Array_SetMaxIndex( Array23, 15000 );
Array_SetMaxIndex( Array24, 15000 );

If (IntervalType <> 1) and (BarInterval <> 60) then
	raiseruntimeerror( "Please Use a 60-Minute Intraday Time Interval" )
Else begin

If (date >= StudyStartDate) and (date <= StudyEndDate) then
	DateCondition = true
Else
	DateCondition = false;
	
If DateCondition then
Begin
	StartVal = low;
	EndVal   = high;
	MyMove   = ((high/low)-1)*100;
	Switch (time)
	Begin 
		Case 100: 
			Begin
				Array1Count = Array1Count + 1;
				Array1[Array1Count] = MyMove;
			End;
		Case 200: 
			Begin
				Array2Count = Array2Count + 1;
				Array2[Array2Count] = MyMove;
			End;	
		Case 300: 
			Begin
				Array3Count = Array3Count + 1;
				Array3[Array3Count] = MyMove;
			End;
		Case 400: 
			Begin
				Array4Count = Array4Count + 1;
				Array4[Array4Count] = MyMove;
			End;
		Case 500: 
			Begin
				Array5Count = Array5Count + 1;
				Array5[Array5Count] = MyMove;
			End;
		Case 600: 
			Begin
				Array6Count = Array6Count + 1;
				Array6[Array6Count] = MyMove;
			End;
		Case 700: 
			Begin
				Array7Count = Array7Count + 1;
				Array7[Array7Count] = MyMove;
			End;
		Case 800: 
			Begin
				Array8Count = Array8Count + 1;
				Array8[Array8Count] = MyMove;
			End;
		Case 900: 
			Begin
				Array9Count = Array9Count + 1;
				Array9[Array9Count] = MyMove;
			End;				
		Case 1000: 
			Begin
				Array10Count = Array10Count + 1;
				Array10[Array10Count] = MyMove;
			End;
		Case 1100: 
			Begin
				Array11Count = Array11Count + 1;
				Array11[Array11Count] = MyMove;
			End;
		Case 1200: 
			Begin
				Array12Count = Array12Count + 1;
				Array12[Array12Count] = MyMove;
			End;
		Case 1300: 
			Begin
				Array13Count = Array13Count + 1;
				Array13[Array13Count] = MyMove;
			End;
		Case 1400: 
			Begin
				Array14Count = Array14Count + 1;
				Array14[Array14Count] = MyMove;
			End;
		Case 1500: 
			Begin
				Array15Count = Array15Count + 1;
				Array15[Array15Count] = MyMove;
			End;
		Case 1600: 
			Begin
				Array16Count = Array16Count + 1;
				Array16[Array16Count] = MyMove;
			End;
		Case 1659: 
			Begin
				Array17Count = Array17Count + 1;
				Array17[Array17Count] = MyMove;
			End;
		Case 1800: 
			Begin
				Array18Count = Array18Count + 1;
				Array18[Array18Count] = MyMove;
			End;
		Case 1900: 
			Begin
				Array19Count = Array19Count + 1;
				Array19[Array19Count] = MyMove;
			End;
		Case 2000: 
			Begin
				Array20Count = Array20Count + 1;
				Array20[Array20Count] = MyMove;
			End;
		Case 2100: 
			Begin
				Array21Count = Array21Count + 1;
				Array21[Array21Count] = MyMove;
			End;
		Case 2200: 
			Begin
				Array22Count = Array22Count + 1;
				Array22[Array22Count] = MyMove;
			End;
		Case 2300: 
			Begin
				Array23Count = Array23Count + 1;
				Array23[Array23Count] = MyMove;
			End;
		Case 000: 
			Begin
				Array24Count = Array24Count + 1;
				Array24[Array24Count] = MyMove;
			End;	
		Default: raiseruntimeerror( "Data Problem with Time" );
	End;																
End;

If Date = StudyEndDate then
Begin
	StandardDevVal1  = standarddevarray( Array1,  Array1Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal2  = standarddevarray( Array2,  Array2Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal3  = standarddevarray( Array3,  Array3Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal4  = standarddevarray( Array4,  Array4Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal5  = standarddevarray( Array5,  Array5Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal6  = standarddevarray( Array6,  Array6Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal7  = standarddevarray( Array7,  Array7Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal8  = standarddevarray( Array8,  Array8Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal9  = standarddevarray( Array9,  Array9Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal10 = standarddevarray( Array10, Array10Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal11 = standarddevarray( Array11, Array11Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal12 = standarddevarray( Array12, Array12Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal13 = standarddevarray( Array13, Array13Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal14 = standarddevarray( Array14, Array14Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal15 = standarddevarray( Array15, Array15Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal16 = standarddevarray( Array16, Array16Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal17 = standarddevarray( Array17, Array17Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal18 = standarddevarray( Array18, Array18Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal19 = standarddevarray( Array19, Array19Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal20 = standarddevarray( Array20, Array20Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal21 = standarddevarray( Array21, Array21Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal22 = standarddevarray( Array22, Array22Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal23 = standarddevarray( Array23, Array23Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal24 = standarddevarray( Array24, Array24Count, 2 ); // 1= Population, 2 = Sample
End;

If lastbaronchart then
Begin
	If time = 100  then 
	Begin
		if time[11] = 1400 then Plot1[11] (standardDevVal14, "Volatility", DisplayColor);
		if time[10] = 1500 then Plot1[10] (standardDevVal15, "Volatility", DisplayColor);
		if time[9]  = 1600 then Plot1[9]  (standardDevVal16, "Volatility", DisplayColor);
		if time[8]  = 1659 then Plot1[8]  (standardDevVal17, "Volatility", DisplayColor);
		if time[7]  = 1800 then Plot1[7]  (standardDevVal18, "Volatility", DisplayColor);
		if time[6]  = 1900 then Plot1[6]  (standardDevVal19, "Volatility", DisplayColor);
		if time[5]  = 2000 then Plot1[5]  (standardDevVal20, "Volatility", DisplayColor);
		if time[4]  = 2100 then Plot1[4]  (standardDevVal21, "Volatility", DisplayColor);
		if time[3]  = 2200 then Plot1[3]  (standardDevVal22, "Volatility", DisplayColor);
		if time[2]  = 2300 then Plot1[2]  (standardDevVal23, "Volatility", DisplayColor);
		if time[1]  = 000  then Plot1[1]  (standardDevVal24, "Volatility", DisplayColor);
		Plot1     (standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal10, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal11, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal12, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal13, "Volatility", DisplayColor);
	End
	Else If time = 200  then 
	Begin 
		if time[11] = 1500 then Plot1[11] (standardDevVal15, "Volatility", DisplayColor);
		if time[10] = 1600 then Plot1[10] (standardDevVal16, "Volatility", DisplayColor);
		if time[9]  = 1659 then Plot1[9]  (standardDevVal17, "Volatility", DisplayColor);
		if time[8]  = 1800 then Plot1[8]  (standardDevVal18, "Volatility", DisplayColor);
		if time[7]  = 1900 then Plot1[7]  (standardDevVal19, "Volatility", DisplayColor);
		if time[6]  = 2000 then Plot1[6]  (standardDevVal20, "Volatility", DisplayColor);
		if time[5]  = 2100 then Plot1[5]  (standardDevVal21, "Volatility", DisplayColor);
		if time[4]  = 2200 then Plot1[4]  (standardDevVal22, "Volatility", DisplayColor);
		if time[3]  = 2300 then Plot1[3]  (standardDevVal23, "Volatility", DisplayColor);
		if time[2]  = 000  then Plot1[2]  (standardDevVal24, "Volatility", DisplayColor);
		if time[1]  = 100  then Plot1[1]  (standardDevVal1,  "Volatility", DisplayColor);
		Plot1     (standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal10, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal11, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal12, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal13, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal14, "Volatility", DisplayColor);
	End
	Else If time = 300  then 
	Begin
		if time[11] = 1600 then Plot1[11] (standardDevVal16, "Volatility", DisplayColor);
		if time[10] = 1659 then Plot1[10] (standardDevVal17, "Volatility", DisplayColor);
		if time[9]  = 1800 then Plot1[9]  (standardDevVal18, "Volatility", DisplayColor);
		if time[8]  = 1900 then Plot1[8]  (standardDevVal19, "Volatility", DisplayColor);
		if time[7]  = 2000 then Plot1[7]  (standardDevVal20, "Volatility", DisplayColor);
		if time[6]  = 2100 then Plot1[6]  (standardDevVal21, "Volatility", DisplayColor);
		if time[5]  = 2200 then Plot1[5]  (standardDevVal22, "Volatility", DisplayColor);
		if time[4]  = 2300 then Plot1[4]  (standardDevVal23, "Volatility", DisplayColor);
		if time[3]  = 000  then Plot1[3]  (standardDevVal24, "Volatility", DisplayColor);
		if time[2]  = 100  then Plot1[2]  (standardDevVal1,  "Volatility", DisplayColor);
		if time[1]  = 200  then Plot1[1]  (standardDevVal2,  "Volatility", DisplayColor);
		Plot1     (standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal10, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal11, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal12, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal13, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal14, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal15, "Volatility", DisplayColor);
	End
	Else If time = 400  then 
	Begin
		if time[11] = 1659 then Plot1[11] (standardDevVal17, "Volatility", DisplayColor);
		if time[10] = 1800 then Plot1[10] (standardDevVal18, "Volatility", DisplayColor);
		if time[9]  = 1900 then Plot1[9]  (standardDevVal19, "Volatility", DisplayColor);
		if time[8]  = 2000 then Plot1[8]  (standardDevVal20, "Volatility", DisplayColor);
		if time[7]  = 2100 then Plot1[7]  (standardDevVal21, "Volatility", DisplayColor);
		if time[6]  = 2200 then Plot1[6]  (standardDevVal22, "Volatility", DisplayColor);
		if time[5]  = 2300 then Plot1[5]  (standardDevVal23, "Volatility", DisplayColor);
		if time[4]  = 000  then Plot1[4]  (standardDevVal24, "Volatility", DisplayColor);
		if time[3]  = 100  then Plot1[3]  (standardDevVal1,  "Volatility", DisplayColor);
		if time[2]  = 200  then Plot1[2]  (standardDevVal2,  "Volatility", DisplayColor);
		if time[1]  = 300  then Plot1[1]  (standardDevVal3,  "Volatility", DisplayColor);
		Plot1     (standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal10, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal11, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal12, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal13, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal14, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal15, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal16, "Volatility", DisplayColor);
	End
	Else If time = 500  then 
	Begin
		if time[11] = 1800 then Plot1[11] (standardDevVal18, "Volatility", DisplayColor);
		if time[10] = 1900 then Plot1[10] (standardDevVal19, "Volatility", DisplayColor);
		if time[9]  = 2000 then Plot1[9]  (standardDevVal20, "Volatility", DisplayColor);
		if time[8]  = 2100 then Plot1[8]  (standardDevVal21, "Volatility", DisplayColor);
		if time[7]  = 2200 then Plot1[7]  (standardDevVal22, "Volatility", DisplayColor);
		if time[6]  = 2300 then Plot1[6]  (standardDevVal23, "Volatility", DisplayColor);
		if time[5]  = 000  then Plot1[5]  (standardDevVal24, "Volatility", DisplayColor);
		if time[4]  = 100  then Plot1[4]  (standardDevVal1,  "Volatility", DisplayColor);
		if time[3]  = 200  then Plot1[3]  (standardDevVal2,  "Volatility", DisplayColor);
		if time[2]  = 300  then Plot1[2]  (standardDevVal3,  "Volatility", DisplayColor);
		if time[1]  = 400  then Plot1[1]  (standardDevVal4,  "Volatility", DisplayColor);
		Plot1     (standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal10, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal11, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal12, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal13, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal14, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal15, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal16, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal17, "Volatility", DisplayColor);
	End
	Else If time = 600  then 
	Begin
		if time[11] = 1900 then Plot1[11] (standardDevVal19, "Volatility", DisplayColor);
		if time[10] = 2000 then Plot1[10] (standardDevVal20, "Volatility", DisplayColor);
		if time[9]  = 2100 then Plot1[9]  (standardDevVal21, "Volatility", DisplayColor);
		if time[8]  = 2200 then Plot1[8]  (standardDevVal22, "Volatility", DisplayColor);
		if time[7]  = 2300 then Plot1[7]  (standardDevVal23, "Volatility", DisplayColor);
		if time[6]  = 000  then Plot1[6]  (standardDevVal24, "Volatility", DisplayColor);
		if time[5]  = 100  then Plot1[5]  (standardDevVal1,  "Volatility", DisplayColor);
		if time[4]  = 200  then Plot1[4]  (standardDevVal2,  "Volatility", DisplayColor);
		if time[3]  = 300  then Plot1[3]  (standardDevVal3,  "Volatility", DisplayColor);
		if time[2]  = 400  then Plot1[2]  (standardDevVal4,  "Volatility", DisplayColor);
		if time[1]  = 500  then Plot1[1]  (standardDevVal5,  "Volatility", DisplayColor);
		Plot1     (standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal10, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal11, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal12, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal13, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal14, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal15, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal16, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal17, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal18, "Volatility", DisplayColor);
	End
	Else If time = 700  then 
	Begin
		if time[11] = 2000 then Plot1[11] (standardDevVal20, "Volatility", DisplayColor);
		if time[10] = 2100 then Plot1[10] (standardDevVal21, "Volatility", DisplayColor);
		if time[9]  = 2200 then Plot1[9]  (standardDevVal22, "Volatility", DisplayColor);
		if time[8]  = 2300 then Plot1[8]  (standardDevVal23, "Volatility", DisplayColor);
		if time[7]  = 000  then Plot1[7]  (standardDevVal24, "Volatility", DisplayColor);
		if time[6]  = 100  then Plot1[6]  (standardDevVal1,  "Volatility", DisplayColor);
		if time[5]  = 200  then Plot1[5]  (standardDevVal2,  "Volatility", DisplayColor);
		if time[4]  = 300  then Plot1[4]  (standardDevVal3,  "Volatility", DisplayColor);
		if time[3]  = 400  then Plot1[3]  (standardDevVal4,  "Volatility", DisplayColor);
		if time[2]  = 500  then Plot1[2]  (standardDevVal5,  "Volatility", DisplayColor);
		if time[1]  = 600  then Plot1[1]  (standardDevVal6,  "Volatility", DisplayColor);
		Plot1     (standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal10, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal11, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal12, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal13, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal14, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal15, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal16, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal17, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal18, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal19, "Volatility", DisplayColor);
	End
	Else If time = 800  then 
	Begin
		if time[11] = 2100 then Plot1[11] (standardDevVal21, "Volatility", DisplayColor);
		if time[10] = 2200 then Plot1[10] (standardDevVal22, "Volatility", DisplayColor);
		if time[9]  = 2300 then Plot1[9]  (standardDevVal23, "Volatility", DisplayColor);
		if time[8]  = 000  then Plot1[8]  (standardDevVal24, "Volatility", DisplayColor);
		if time[7]  = 100  then Plot1[7]  (standardDevVal1,  "Volatility", DisplayColor);
		if time[6]  = 200  then Plot1[6]  (standardDevVal2,  "Volatility", DisplayColor);
		if time[5]  = 300  then Plot1[5]  (standardDevVal3,  "Volatility", DisplayColor);
		if time[4]  = 400  then Plot1[4]  (standardDevVal4,  "Volatility", DisplayColor);
		if time[3]  = 500  then Plot1[3]  (standardDevVal5,  "Volatility", DisplayColor);
		if time[2]  = 600  then Plot1[2]  (standardDevVal6,  "Volatility", DisplayColor);
		if time[1]  = 700  then Plot1[1]  (standardDevVal7,  "Volatility", DisplayColor);
		Plot1     (standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal10, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal11, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal12, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal13, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal14, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal15, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal16, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal17, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal18, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal19, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal20, "Volatility", DisplayColor);
	End
	Else If time = 900  then 
	Begin
		if time[11] = 2200 then Plot1[11] (standardDevVal22, "Volatility", DisplayColor);
		if time[10] = 2300 then Plot1[10] (standardDevVal23, "Volatility", DisplayColor);
		if time[9]  = 000  then Plot1[9]  (standardDevVal24, "Volatility", DisplayColor);
		if time[8]  = 100  then Plot1[8]  (standardDevVal1,  "Volatility", DisplayColor);
		if time[7]  = 200  then Plot1[7]  (standardDevVal2,  "Volatility", DisplayColor);
		if time[6]  = 300  then Plot1[6]  (standardDevVal3,  "Volatility", DisplayColor);
		if time[5]  = 400  then Plot1[5]  (standardDevVal4,  "Volatility", DisplayColor);
		if time[4]  = 500  then Plot1[4]  (standardDevVal5,  "Volatility", DisplayColor);
		if time[3]  = 600  then Plot1[3]  (standardDevVal6,  "Volatility", DisplayColor);
		if time[2]  = 700  then Plot1[2]  (standardDevVal7,  "Volatility", DisplayColor);
		if time[1]  = 800  then Plot1[1]  (standardDevVal8,  "Volatility", DisplayColor);
		Plot1     (standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal10, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal11, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal12, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal13, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal14, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal15, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal16, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal17, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal18, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal19, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal20, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal21, "Volatility", DisplayColor);
	End
	Else If time = 1000 then 
	Begin
		if time[11] = 2300 then Plot1[11] (standardDevVal23, "Volatility", DisplayColor);
		if time[10] = 000  then Plot1[10] (standardDevVal24, "Volatility", DisplayColor);
		if time[9]  = 100  then Plot1[9]  (standardDevVal1,  "Volatility", DisplayColor);
		if time[8]  = 200  then Plot1[8]  (standardDevVal2,  "Volatility", DisplayColor);
		if time[7]  = 300  then Plot1[7]  (standardDevVal3,  "Volatility", DisplayColor);
		if time[6]  = 400  then Plot1[6]  (standardDevVal4,  "Volatility", DisplayColor);
		if time[5]  = 500  then Plot1[5]  (standardDevVal5,  "Volatility", DisplayColor);
		if time[4]  = 600  then Plot1[4]  (standardDevVal6,  "Volatility", DisplayColor);
		if time[3]  = 700  then Plot1[3]  (standardDevVal7,  "Volatility", DisplayColor);
		if time[2]  = 800  then Plot1[2]  (standardDevVal8,  "Volatility", DisplayColor);
		if time[1]  = 900  then Plot1[1]  (standardDevVal9,  "Volatility", DisplayColor);
		Plot1     (standardDevVal10, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal11, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal12, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal13, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal14, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal15, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal16, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal17, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal18, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal19, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal20, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal21, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal22, "Volatility", DisplayColor);
	End
	Else If time = 1100 then 
	Begin
		if time[11] = 000  then Plot1[11] (standardDevVal24, "Volatility", DisplayColor);
		if time[10] = 100  then Plot1[10] (standardDevVal1,  "Volatility", DisplayColor);
		if time[9]  = 200  then Plot1[9]  (standardDevVal2,  "Volatility", DisplayColor);
		if time[8]  = 300  then Plot1[8]  (standardDevVal3,  "Volatility", DisplayColor);
		if time[7]  = 400  then Plot1[7]  (standardDevVal4,  "Volatility", DisplayColor);
		if time[6]  = 500  then Plot1[6]  (standardDevVal5,  "Volatility", DisplayColor);
		if time[5]  = 600  then Plot1[5]  (standardDevVal6,  "Volatility", DisplayColor);
		if time[4]  = 700  then Plot1[4]  (standardDevVal7,  "Volatility", DisplayColor);
		if time[3]  = 800  then Plot1[3]  (standardDevVal8,  "Volatility", DisplayColor);
		if time[2]  = 900  then Plot1[2]  (standardDevVal9,  "Volatility", DisplayColor);
		if time[1]  = 1000 then Plot1[1]  (standardDevVal10, "Volatility", DisplayColor);
		Plot1     (standardDevVal11, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal12, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal13, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal14, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal15, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal16, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal17, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal18, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal19, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal20, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal21, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal22, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal23, "Volatility", DisplayColor);
	End
	Else If time = 1200 then
	Begin 
		if time[11] = 100  then Plot1[11] (standardDevVal1,  "Volatility", DisplayColor);
		if time[10] = 200  then Plot1[10] (standardDevVal2,  "Volatility", DisplayColor);
		if time[9]  = 300  then Plot1[9]  (standardDevVal3,  "Volatility", DisplayColor);
		if time[8]  = 400  then Plot1[8]  (standardDevVal4,  "Volatility", DisplayColor);
		if time[7]  = 500  then Plot1[7]  (standardDevVal5,  "Volatility", DisplayColor);
		if time[6]  = 600  then Plot1[6]  (standardDevVal6,  "Volatility", DisplayColor);
		if time[5]  = 700  then Plot1[5]  (standardDevVal7,  "Volatility", DisplayColor);
		if time[4]  = 800  then Plot1[4]  (standardDevVal8,  "Volatility", DisplayColor);
		if time[3]  = 900  then Plot1[3]  (standardDevVal9,  "Volatility", DisplayColor);
		if time[2]  = 1000 then Plot1[2]  (standardDevVal10, "Volatility", DisplayColor);
		if time[1]  = 1100 then Plot1[1]  (standardDevVal11, "Volatility", DisplayColor);
		Plot1     (standardDevVal12, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal13, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal14, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal15, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal16, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal17, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal18, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal19, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal20, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal21, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal22, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal23, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal24, "Volatility", DisplayColor);
	End
	Else If time = 1300 then 
	Begin
		if time[11] = 200  then Plot1[11] (standardDevVal2,  "Volatility", DisplayColor);
		if time[10] = 300  then Plot1[10] (standardDevVal3,  "Volatility", DisplayColor);
		if time[9]  = 400  then Plot1[9]  (standardDevVal4,  "Volatility", DisplayColor);
		if time[8]  = 500  then Plot1[8]  (standardDevVal5,  "Volatility", DisplayColor);
		if time[7]  = 600  then Plot1[7]  (standardDevVal6,  "Volatility", DisplayColor);
		if time[6]  = 700  then Plot1[6]  (standardDevVal7,  "Volatility", DisplayColor);
		if time[5]  = 800  then Plot1[5]  (standardDevVal8,  "Volatility", DisplayColor);
		if time[4]  = 900  then Plot1[4]  (standardDevVal9,  "Volatility", DisplayColor);
		if time[3]  = 1000 then Plot1[3]  (standardDevVal10, "Volatility", DisplayColor);
		if time[2]  = 1100 then Plot1[2]  (standardDevVal11, "Volatility", DisplayColor);
		if time[1]  = 1200 then Plot1[1]  (standardDevVal12, "Volatility", DisplayColor);
		Plot1     (standardDevVal13, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal14, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal15, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal16, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal17, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal18, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal19, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal20, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal21, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal22, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal23, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal24, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal1,  "Volatility", DisplayColor);
	End
	Else If time = 1400 then 
	Begin
		if time[11] = 300  then Plot1[11] (standardDevVal3,  "Volatility", DisplayColor);
		if time[10] = 400  then Plot1[10] (standardDevVal4,  "Volatility", DisplayColor);
		if time[9]  = 500  then Plot1[9]  (standardDevVal5,  "Volatility", DisplayColor);
		if time[8]  = 600  then Plot1[8]  (standardDevVal6,  "Volatility", DisplayColor);
		if time[7]  = 700  then Plot1[7]  (standardDevVal7,  "Volatility", DisplayColor);
		if time[6]  = 800  then Plot1[6]  (standardDevVal8,  "Volatility", DisplayColor);
		if time[5]  = 900  then Plot1[5]  (standardDevVal9,  "Volatility", DisplayColor);
		if time[4]  = 1000 then Plot1[4]  (standardDevVal10, "Volatility", DisplayColor);
		if time[3]  = 1100 then Plot1[3]  (standardDevVal11, "Volatility", DisplayColor);
		if time[2]  = 1200 then Plot1[2]  (standardDevVal12, "Volatility", DisplayColor);
		if time[1]  = 1300 then Plot1[1]  (standardDevVal13, "Volatility", DisplayColor);
		Plot1     (standardDevVal14, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal15, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal16, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal17, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal18, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal19, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal20, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal21, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal22, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal23, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal24, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-12](standardDevVal2,  "Volatility", DisplayColor);
	End
	Else If time = 1500 then
	Begin 
		if time[11] = 400  then Plot1[11] (standardDevVal4,  "Volatility", DisplayColor);
		if time[10] = 500  then Plot1[10] (standardDevVal5,  "Volatility", DisplayColor);
		if time[9]  = 600  then Plot1[9]  (standardDevVal6,  "Volatility", DisplayColor);
		if time[8]  = 700  then Plot1[8]  (standardDevVal7,  "Volatility", DisplayColor);
		if time[7]  = 800  then Plot1[7]  (standardDevVal8,  "Volatility", DisplayColor);
		if time[6]  = 900  then Plot1[6]  (standardDevVal9,  "Volatility", DisplayColor);
		if time[5]  = 1000 then Plot1[5]  (standardDevVal10, "Volatility", DisplayColor);
		if time[4]  = 1100 then Plot1[4]  (standardDevVal11, "Volatility", DisplayColor);
		if time[3]  = 1200 then Plot1[3]  (standardDevVal12, "Volatility", DisplayColor);
		if time[2]  = 1300 then Plot1[2]  (standardDevVal13, "Volatility", DisplayColor);
		if time[1]  = 1400 then Plot1[1]  (standardDevVal14, "Volatility", DisplayColor);
		Plot1     (standardDevVal15, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal16, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal17, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal18, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal19, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal20, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal21, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal22, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal23, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal24, "Volatility", DisplayColor);
		Plot1[-10](standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-11](standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-12](standardDevVal3,  "Volatility", DisplayColor);
	End
	Else If time = 1600 then 
	Begin
		if time[11] = 500  then Plot1[11] (standardDevVal5,  "Volatility", DisplayColor);
		if time[10] = 600  then Plot1[10] (standardDevVal6,  "Volatility", DisplayColor);
		if time[9]  = 700  then Plot1[9]  (standardDevVal7,  "Volatility", DisplayColor);
		if time[8]  = 800  then Plot1[8]  (standardDevVal8,  "Volatility", DisplayColor);
		if time[7]  = 900  then Plot1[7]  (standardDevVal9,  "Volatility", DisplayColor);
		if time[6]  = 1000 then Plot1[6]  (standardDevVal10, "Volatility", DisplayColor);
		if time[5]  = 1100 then Plot1[5]  (standardDevVal11, "Volatility", DisplayColor);
		if time[4]  = 1200 then Plot1[4]  (standardDevVal12, "Volatility", DisplayColor);
		if time[3]  = 1300 then Plot1[3]  (standardDevVal13, "Volatility", DisplayColor);
		if time[2]  = 1400 then Plot1[2]  (standardDevVal14, "Volatility", DisplayColor);
		if time[1]  = 1500 then Plot1[1]  (standardDevVal15, "Volatility", DisplayColor);
		Plot1     (standardDevVal16, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal17, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal18, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal19, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal20, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal21, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal22, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal23, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal24, "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-10](standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-11](standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-12](standardDevVal4,  "Volatility", DisplayColor);
	End
	Else If time = 1659 then 
	Begin
		if time[11] = 600  then Plot1[11] (standardDevVal6,  "Volatility", DisplayColor);
		if time[10] = 700  then Plot1[10] (standardDevVal7,  "Volatility", DisplayColor);
		if time[9]  = 800  then Plot1[9]  (standardDevVal8,  "Volatility", DisplayColor);
		if time[8]  = 900  then Plot1[8]  (standardDevVal9,  "Volatility", DisplayColor);
		if time[7]  = 1000 then Plot1[7]  (standardDevVal10, "Volatility", DisplayColor);
		if time[6]  = 1100 then Plot1[6]  (standardDevVal11, "Volatility", DisplayColor);
		if time[5]  = 1200 then Plot1[5]  (standardDevVal12, "Volatility", DisplayColor);
		if time[4]  = 1300 then Plot1[4]  (standardDevVal13, "Volatility", DisplayColor);
		if time[3]  = 1400 then Plot1[3]  (standardDevVal14, "Volatility", DisplayColor);
		if time[2]  = 1500 then Plot1[2]  (standardDevVal15, "Volatility", DisplayColor);
		if time[1]  = 1600 then Plot1[1]  (standardDevVal16, "Volatility", DisplayColor);
		Plot1     (standardDevVal17, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal18, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal19, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal20, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal21, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal22, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal23, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal24, "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-10](standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-11](standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-12](standardDevVal5,  "Volatility", DisplayColor);
	End
	Else If time = 1800 then 
	Begin
		if time[11] = 700  then Plot1[11] (standardDevVal7,  "Volatility", DisplayColor);
		if time[10] = 800  then Plot1[10] (standardDevVal8,  "Volatility", DisplayColor);
		if time[9]  = 900  then Plot1[9]  (standardDevVal9,  "Volatility", DisplayColor);
		if time[8]  = 1000 then Plot1[8]  (standardDevVal10, "Volatility", DisplayColor);
		if time[7]  = 1100 then Plot1[7]  (standardDevVal11, "Volatility", DisplayColor);
		if time[6]  = 1200 then Plot1[6]  (standardDevVal12, "Volatility", DisplayColor);
		if time[5]  = 1300 then Plot1[5]  (standardDevVal13, "Volatility", DisplayColor);
		if time[4]  = 1400 then Plot1[4]  (standardDevVal14, "Volatility", DisplayColor);
		if time[3]  = 1500 then Plot1[3]  (standardDevVal15, "Volatility", DisplayColor);
		if time[2]  = 1600 then Plot1[2]  (standardDevVal16, "Volatility", DisplayColor);
		if time[1]  = 1659 then Plot1[1]  (standardDevVal17, "Volatility", DisplayColor);
		Plot1     (standardDevVal18, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal19, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal20, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal21, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal22, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal23, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal24, "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-10](standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-11](standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-12](standardDevVal6,  "Volatility", DisplayColor);	
	End
	Else If time = 1900 then 
	Begin
		if time[11] = 800  then Plot1[11] (standardDevVal8,  "Volatility", DisplayColor);
		if time[10] = 900  then Plot1[10] (standardDevVal9,  "Volatility", DisplayColor);
		if time[9]  = 1000 then Plot1[9]  (standardDevVal10, "Volatility", DisplayColor);
		if time[8]  = 1100 then Plot1[8]  (standardDevVal11, "Volatility", DisplayColor);
		if time[7]  = 1200 then Plot1[7]  (standardDevVal12, "Volatility", DisplayColor);
		if time[6]  = 1300 then Plot1[6]  (standardDevVal13, "Volatility", DisplayColor);
		if time[5]  = 1400 then Plot1[5]  (standardDevVal14, "Volatility", DisplayColor);
		if time[4]  = 1500 then Plot1[4]  (standardDevVal15, "Volatility", DisplayColor);
		if time[3]  = 1600 then Plot1[3]  (standardDevVal16, "Volatility", DisplayColor);
		if time[2]  = 1659 then Plot1[2]  (standardDevVal17, "Volatility", DisplayColor);
		if time[1]  = 1800 then Plot1[1]  (standardDevVal18, "Volatility", DisplayColor);
		Plot1     (standardDevVal19, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal20, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal21, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal22, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal23, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal24, "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-10](standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-11](standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-12](standardDevVal7,  "Volatility", DisplayColor);
	End	
	Else If time = 2000 then
	Begin 
		if time[11] = 900  then Plot1[11] (standardDevVal9,  "Volatility", DisplayColor);
		if time[10] = 1000 then Plot1[10] (standardDevVal10, "Volatility", DisplayColor);
		if time[9]  = 1100 then Plot1[9]  (standardDevVal11, "Volatility", DisplayColor);
		if time[8]  = 1200 then Plot1[8]  (standardDevVal12, "Volatility", DisplayColor);
		if time[7]  = 1300 then Plot1[7]  (standardDevVal13, "Volatility", DisplayColor);
		if time[6]  = 1400 then Plot1[6]  (standardDevVal14, "Volatility", DisplayColor);
		if time[5]  = 1500 then Plot1[5]  (standardDevVal15, "Volatility", DisplayColor);
		if time[4]  = 1600 then Plot1[4]  (standardDevVal16, "Volatility", DisplayColor);
		if time[3]  = 1659 then Plot1[3]  (standardDevVal17, "Volatility", DisplayColor);
		if time[2]  = 1800 then Plot1[2]  (standardDevVal18, "Volatility", DisplayColor);
		if time[1]  = 1900 then Plot1[1]  (standardDevVal19, "Volatility", DisplayColor);
		Plot1     (standardDevVal20, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal21, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal22, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal23, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal24, "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-10](standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-11](standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-12](standardDevVal8,  "Volatility", DisplayColor);
	End
	Else If time = 2100 then 
	Begin
		if time[11] = 1000 then Plot1[11] (standardDevVal10, "Volatility", DisplayColor);
		if time[10] = 1100 then Plot1[10] (standardDevVal11, "Volatility", DisplayColor);
		if time[9]  = 1200 then Plot1[9]  (standardDevVal12, "Volatility", DisplayColor);
		if time[8]  = 1300 then Plot1[8]  (standardDevVal13, "Volatility", DisplayColor);
		if time[7]  = 1400 then Plot1[7]  (standardDevVal14, "Volatility", DisplayColor);
		if time[6]  = 1500 then Plot1[6]  (standardDevVal15, "Volatility", DisplayColor);
		if time[5]  = 1600 then Plot1[5]  (standardDevVal16, "Volatility", DisplayColor);
		if time[4]  = 1659 then Plot1[4]  (standardDevVal17, "Volatility", DisplayColor);
		if time[3]  = 1800 then Plot1[3]  (standardDevVal18, "Volatility", DisplayColor);
		if time[2]  = 1900 then Plot1[2]  (standardDevVal19, "Volatility", DisplayColor);
		if time[1]  = 2000 then Plot1[1]  (standardDevVal20, "Volatility", DisplayColor);
		Plot1     (standardDevVal21, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal22, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal23, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal24, "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-10](standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-11](standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-12](standardDevVal9,  "Volatility", DisplayColor);
	End
	Else If time = 2200 then 
	Begin
		if time[11] = 1100 then Plot1[11] (standardDevVal11, "Volatility", DisplayColor);
		if time[10] = 1200 then Plot1[10] (standardDevVal12, "Volatility", DisplayColor);
		if time[9]  = 1300 then Plot1[9]  (standardDevVal13, "Volatility", DisplayColor);
		if time[8]  = 1400 then Plot1[8]  (standardDevVal14, "Volatility", DisplayColor);
		if time[7]  = 1500 then Plot1[7]  (standardDevVal15, "Volatility", DisplayColor);
		if time[6]  = 1600 then Plot1[6]  (standardDevVal16, "Volatility", DisplayColor);
		if time[5]  = 1659 then Plot1[5]  (standardDevVal17, "Volatility", DisplayColor);
		if time[4]  = 1800 then Plot1[4]  (standardDevVal18, "Volatility", DisplayColor);
		if time[3]  = 1900 then Plot1[3]  (standardDevVal19, "Volatility", DisplayColor);
		if time[2]  = 2000 then Plot1[2]  (standardDevVal20, "Volatility", DisplayColor);
		if time[1]  = 2100 then Plot1[1]  (standardDevVal21, "Volatility", DisplayColor);
		Plot1     (standardDevVal22, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal23, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal24, "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-10](standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-11](standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-12](standardDevVal10, "Volatility", DisplayColor);
	End
	Else If time = 2300 then 
	Begin
		if time[11] = 1200 then Plot1[11] (standardDevVal12, "Volatility", DisplayColor);
		if time[10] = 1300 then Plot1[10] (standardDevVal13, "Volatility", DisplayColor);
		if time[9]  = 1400 then Plot1[9]  (standardDevVal14, "Volatility", DisplayColor);
		if time[8]  = 1500 then Plot1[8]  (standardDevVal15, "Volatility", DisplayColor);
		if time[7]  = 1600 then Plot1[7]  (standardDevVal16, "Volatility", DisplayColor);
		if time[6]  = 1659 then Plot1[6]  (standardDevVal17, "Volatility", DisplayColor);
		if time[5]  = 1800 then Plot1[5]  (standardDevVal18, "Volatility", DisplayColor);
		if time[4]  = 1900 then Plot1[4]  (standardDevVal19, "Volatility", DisplayColor);
		if time[3]  = 2000 then Plot1[3]  (standardDevVal20, "Volatility", DisplayColor);
		if time[2]  = 2100 then Plot1[2]  (standardDevVal21, "Volatility", DisplayColor);
		if time[1]  = 2200 then Plot1[1]  (standardDevVal22, "Volatility", DisplayColor);
		Plot1     (standardDevVal23, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal24, "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-10](standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-11](standardDevVal10, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal11, "Volatility", DisplayColor);
	End
	Else If time = 000  then 
	Begin
		if time[11] = 1300 then Plot1[11] (standardDevVal13, "Volatility", DisplayColor);
		if time[10] = 1400 then Plot1[10] (standardDevVal14, "Volatility", DisplayColor);
		if time[9]  = 1500 then Plot1[9]  (standardDevVal15, "Volatility", DisplayColor);
		if time[8]  = 1600 then Plot1[8]  (standardDevVal16, "Volatility", DisplayColor);
		if time[7]  = 1659 then Plot1[7]  (standardDevVal17, "Volatility", DisplayColor);
		if time[6]  = 1800 then Plot1[6]  (standardDevVal18, "Volatility", DisplayColor);
		if time[5]  = 1900 then Plot1[5]  (standardDevVal19, "Volatility", DisplayColor);
		if time[4]  = 2000 then Plot1[4]  (standardDevVal20, "Volatility", DisplayColor);
		if time[3]  = 2100 then Plot1[3]  (standardDevVal21, "Volatility", DisplayColor);
		if time[2]  = 2200 then Plot1[2]  (standardDevVal22, "Volatility", DisplayColor);
		if time[1]  = 2300 then Plot1[1]  (standardDevVal23, "Volatility", DisplayColor);
		Plot1     (standardDevVal24, "Volatility", DisplayColor);
		Plot1[-1] (standardDevVal1,  "Volatility", DisplayColor);
		Plot1[-2] (standardDevVal2,  "Volatility", DisplayColor);
		Plot1[-3] (standardDevVal3,  "Volatility", DisplayColor);
		Plot1[-4] (standardDevVal4,  "Volatility", DisplayColor);
		Plot1[-5] (standardDevVal5,  "Volatility", DisplayColor);
		Plot1[-6] (standardDevVal6,  "Volatility", DisplayColor);
		Plot1[-7] (standardDevVal7,  "Volatility", DisplayColor);
		Plot1[-8] (standardDevVal8,  "Volatility", DisplayColor);
		Plot1[-9] (standardDevVal9,  "Volatility", DisplayColor);
		Plot1[-10](standardDevVal10, "Volatility", DisplayColor);
		Plot1[-11](standardDevVal11, "Volatility", DisplayColor);
		Plot1[-12](standardDevVal12, "Volatility", DisplayColor);
	End
	Else NoPlot( 1 );
End;
End;
Any quick help will be appreciated.

http://www.tradestation.com/~/media/.../report24.ashx
Thnx in advance.

Last edited by nTupLe2; 09-01-2014 at 04:33 PM. Reason: software
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to nTupLe2 For This Useful Post:
  #2 (permalink)  
Old 09-01-2014, 06:46 PM
Sunshine's Avatar
Sunshine Sunshine is offline
indiTraders VIP
 
Join Date: Oct 2009
Posts: 2,529
Thanks: 6,189
Thanked 4,436 Times in 1,980 Posts
Sunshine has a reputation beyond repute
Sunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond reputeSunshine has a reputation beyond repute
Default

IMO this part is to be looked into carefully and also there are so many time settings throughout the code .They need to be changed too . I have not used MC before .Hence I do not know whether it will or not . Better try with 24 hr FX data with 60 min bars as told in explanation before playing with time params.
Quote:
//This indicator displays a 24-hour volatility map. The time period covered in the volatility calculation
//can be changed in the indicator's inputs. The time interval for the chart needs to be set to 60 minutes
//for proper display.

Inputs: StudyStartDate ( 1060331 ),
StudyEndDate ( 1110331 ),

__________________
A man who moves a mountain begins by carrying away small stones - Confucius
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 14-01-2014, 09:56 AM
nTupLe2 nTupLe2 is offline
Regulars
 
Join Date: Nov 2013
Location: kolkata+WB/Country
Posts: 216
Thanks: 172
Thanked 143 Times in 96 Posts
nTupLe2 will become famous soon enoughnTupLe2 will become famous soon enoughnTupLe2 will become famous soon enough
Default

Hi
this is shared by TSLab but still not working.
Code:
//TLab copyrighted mat


//This indicator displays cloud-like volatility bands historically and directly on the chart.  The 
//time period for the volatility calculation and the number of standard deviation can be set in the 
//inputs.  This particular version of the indicator is meant for futures (e.g. S&P E-minis).

//Settings: the time interval for the chart needs to be set to 60 minutes for proper display. Also, 
//please use 24-hour intraday custom session. 
   
Inputs: StudyStartDate     ( 1060101 ),
		StudyEndDate       ( 1110228 ),
		StdDevNum          ( 2 ),
		DisplayColor       ( Darkblue );

Vars: StartVal           ( 0 ),
	  EndVal             ( 0 ),
	  Array1Count        ( 0 ),
	  Array2Count        ( 0 ),
	  Array3Count        ( 0 ),
	  Array4Count        ( 0 ),
	  Array5Count        ( 0 ),
	  Array6Count        ( 0 ),
	  Array7Count        ( 0 ),
	  Array8Count        ( 0 ),
	  Array9Count        ( 0 ),
	  Array10Count       ( 0 ),
	  Array11Count       ( 0 ),
	  Array12Count       ( 0 ),
	  Array13Count       ( 0 ),
	  Array14Count       ( 0 ),
	  Array15Count       ( 0 ),
	  Array16Count       ( 0 ),
	  Array17Count       ( 0 ),
	  Array18Count       ( 0 ),
	  Array19Count       ( 0 ),
	  Array20Count       ( 0 ),
	  Array21Count       ( 0 ),
	  Array22Count       ( 0 ),
	  Array23Count       ( 0 ),
	  Array24Count       ( 0 ),
	  MyMove             ( 0 ),
	  StandardDevVal1    ( 0 ),
	  StandardDevVal2    ( 0 ),
	  StandardDevVal3    ( 0 ),
	  StandardDevVal4    ( 0 ),
	  StandardDevVal5    ( 0 ),
	  StandardDevVal6    ( 0 ),
	  StandardDevVal7    ( 0 ),
	  StandardDevVal8    ( 0 ),
	  StandardDevVal9    ( 0 ),
	  StandardDevVal10   ( 0 ),
	  StandardDevVal11   ( 0 ),
	  StandardDevVal12   ( 0 ),
	  StandardDevVal13   ( 0 ),
	  StandardDevVal14   ( 0 ),
	  StandardDevVal15   ( 0 ),
	  StandardDevVal16   ( 0 ),
	  StandardDevVal17   ( 0 ),
	  StandardDevVal18   ( 0 ),
	  StandardDevVal19   ( 0 ),
	  StandardDevVal20   ( 0 ),
	  StandardDevVal21   ( 0 ),
	  StandardDevVal22   ( 0 ),
	  StandardDevVal23   ( 0 ),
	  StandardDevVal24   ( 0 ),
	  DateCondition      ( False );
	
Array:  Array1[] ( 0 ),  Array2[] ( 0 ),  Array3[] ( 0 ),  Array4[] ( 0 ),  Array5[] ( 0 ), 
	    Array6[] ( 0 ),  Array7[] ( 0 ),  Array8[] ( 0 ),  Array9[] ( 0 ), Array10[] ( 0 ),
	   Array11[] ( 0 ), Array12[] ( 0 ), Array13[] ( 0 ), Array14[] ( 0 ), Array15[] ( 0 ),
	   Array16[] ( 0 ), Array17[] ( 0 ), Array18[] ( 0 ), Array19[] ( 0 ), Array20[] ( 0 ),
	   Array21[] ( 0 ), Array22[] ( 0 ), Array23[] ( 0 ), Array24[] ( 0 );

Array_SetMaxIndex( Array1,  15000 );
Array_SetMaxIndex( Array2,  15000 );	
Array_SetMaxIndex( Array3,  15000 );
Array_SetMaxIndex( Array4,  15000 );	
Array_SetMaxIndex( Array5,  15000 );
Array_SetMaxIndex( Array6,  15000 );	
Array_SetMaxIndex( Array7,  15000 );
Array_SetMaxIndex( Array8,  15000 );	
Array_SetMaxIndex( Array9,  15000 );
Array_SetMaxIndex( Array10, 15000 );	
Array_SetMaxIndex( Array11, 15000 );
Array_SetMaxIndex( Array12, 15000 );	
Array_SetMaxIndex( Array13, 15000 );
Array_SetMaxIndex( Array14, 15000 );	
Array_SetMaxIndex( Array15, 15000 );
Array_SetMaxIndex( Array16, 15000 );	
Array_SetMaxIndex( Array17, 15000 );
Array_SetMaxIndex( Array18, 15000 );	
Array_SetMaxIndex( Array19, 15000 );
Array_SetMaxIndex( Array20, 15000 );
Array_SetMaxIndex( Array21, 15000 );
Array_SetMaxIndex( Array22, 15000 );	
Array_SetMaxIndex( Array23, 15000 );
Array_SetMaxIndex( Array24, 15000 );

If (IntervalType <> 1) and (BarInterval <> 60) then
	raiseruntimeerror( "Please Use a 60-Minute Intraday Time Interval" )
Else begin

If (date >= StudyStartDate) and (date <= StudyEndDate) then
	DateCondition = true
Else
	DateCondition = false;
	
If DateCondition then
Begin
	StartVal = low;
	EndVal   = high;
	MyMove   = ((high / low)-1);
	Switch (time)
	Begin 
		Case 100: 
			Begin
				Array1Count = Array1Count + 1;
				Array1[Array1Count] = MyMove;
			End;
		Case 200: 
			Begin
				Array2Count = Array2Count + 1;
				Array2[Array2Count] = MyMove;
			End;	
		Case 300: 
			Begin
				Array3Count = Array3Count + 1;
				Array3[Array3Count] = MyMove;
			End;
		Case 400: 
			Begin
				Array4Count = Array4Count + 1;
				Array4[Array4Count] = MyMove;
			End;
		Case 500: 
			Begin
				Array5Count = Array5Count + 1;
				Array5[Array5Count] = MyMove;
			End;
		Case 600: 
			Begin
				Array6Count = Array6Count + 1;
				Array6[Array6Count] = MyMove;
			End;
		Case 700: 
			Begin
				Array7Count = Array7Count + 1;
				Array7[Array7Count] = MyMove;
			End;
		Case 800: 
			Begin
				Array8Count = Array8Count + 1;
				Array8[Array8Count] = MyMove;
			End;
		Case 900: 
			Begin
				Array9Count = Array9Count + 1;
				Array9[Array9Count] = MyMove;
			End;				
		Case 1000: 
			Begin
				Array10Count = Array10Count + 1;
				Array10[Array10Count] = MyMove;
			End;
		Case 1100: 
			Begin
				Array11Count = Array11Count + 1;
				Array11[Array11Count] = MyMove;
			End;
		Case 1200: 
			Begin
				Array12Count = Array12Count + 1;
				Array12[Array12Count] = MyMove;
			End;
		Case 1300: 
			Begin
				Array13Count = Array13Count + 1;
				Array13[Array13Count] = MyMove;
			End;
		Case 1400: 
			Begin
				Array14Count = Array14Count + 1;
				Array14[Array14Count] = MyMove;
			End;
		Case 1500: 
			Begin
				Array15Count = Array15Count + 1;
				Array15[Array15Count] = MyMove;
			End;
		Case 1600: 
			Begin
				Array16Count = Array16Count + 1;
				Array16[Array16Count] = MyMove;
			End;
		Case 1700: 
			Begin
				Array17Count = Array17Count + 1;
				Array17[Array17Count] = MyMove;
			End;
		Case 1800: 
			Begin
				Array18Count = Array18Count + 1;
				Array18[Array18Count] = MyMove;
			End;
		Case 1900: 
			Begin
				Array19Count = Array19Count + 1;
				Array19[Array19Count] = MyMove;
			End;
		Case 2000: 
			Begin
				Array20Count = Array20Count + 1;
				Array20[Array20Count] = MyMove;
			End;
		Case 2100: 
			Begin
				Array21Count = Array21Count + 1;
				Array21[Array21Count] = MyMove;
			End;
		Case 2200: 
			Begin
				Array22Count = Array22Count + 1;
				Array22[Array22Count] = MyMove;
			End;
		Case 2300: 
			Begin
				Array23Count = Array23Count + 1;
				Array23[Array23Count] = MyMove;
			End;
		Case 000: 
			Begin
				Array24Count = Array24Count + 1;
				Array24[Array24Count] = MyMove;
			End;	
		Default: raiseruntimeerror( "Data Problem with Time" );
	End;																
End;

If Date = StudyEndDate then
Begin
	StandardDevVal1  = standarddevarray( Array1,  Array1Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal2  = standarddevarray( Array2,  Array2Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal3  = standarddevarray( Array3,  Array3Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal4  = standarddevarray( Array4,  Array4Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal5  = standarddevarray( Array5,  Array5Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal6  = standarddevarray( Array6,  Array6Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal7  = standarddevarray( Array7,  Array7Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal8  = standarddevarray( Array8,  Array8Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal9  = standarddevarray( Array9,  Array9Count,  2 ); // 1= Population, 2 = Sample
	StandardDevVal10 = standarddevarray( Array10, Array10Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal11 = standarddevarray( Array11, Array11Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal12 = standarddevarray( Array12, Array12Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal13 = standarddevarray( Array13, Array13Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal14 = standarddevarray( Array14, Array14Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal15 = standarddevarray( Array15, Array15Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal16 = standarddevarray( Array16, Array16Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal17 = standarddevarray( Array17, Array17Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal18 = standarddevarray( Array18, Array18Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal19 = standarddevarray( Array19, Array19Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal20 = standarddevarray( Array20, Array20Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal21 = standarddevarray( Array21, Array21Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal22 = standarddevarray( Array22, Array22Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal23 = standarddevarray( Array23, Array23Count, 2 ); // 1= Population, 2 = Sample
	StandardDevVal24 = standarddevarray( Array24, Array24Count, 2 ); // 1= Population, 2 = Sample
End;

If Date > StudyEndDate then 
Begin
Switch (time)
	Begin 
		Case 100: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal1),  "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal1),  "DownVol", DisplayColor);
			End;
		Case 200: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal2),  "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal2),  "DownVol", DisplayColor);
			End;	
		Case 300: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal3),  "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal3),  "DownVol", DisplayColor);
			End;
		Case 400: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal4),  "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal4),  "DownVol", DisplayColor);
			End;
		Case 500: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal5),  "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal5),  "DownVol", DisplayColor);
			End;
		Case 600: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal6),  "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal6),  "DownVol", DisplayColor);
			End;
		Case 700: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal7),  "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal7),  "DownVol", DisplayColor);
			End;
		Case 800: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal8),  "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal8),  "DownVol", DisplayColor);
			End;
		Case 900: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal9),  "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal9),  "DownVol", DisplayColor);
			End;				
		Case 1000: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal10), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal10), "DownVol", DisplayColor);
			End;
		Case 1100: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal11), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal11), "DownVol", DisplayColor);
			End;
		Case 1200: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal12), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal12), "DownVol", DisplayColor);
			End;
		Case 1300: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal13), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal13), "DownVol", DisplayColor);
			End;
		Case 1400: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal14), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal14), "DownVol", DisplayColor);
			End;
		Case 1500: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal15), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal15), "DownVol", DisplayColor);
			End;
		Case 1600: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal16), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal16), "DownVol", DisplayColor);
			End;
		Case 1700: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal17), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal17), "DownVol", DisplayColor);
			End;
		Case 1800: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal18), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal18), "DownVol", DisplayColor);
			End;
		Case 1900: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal19), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal19), "DownVol", DisplayColor);
			End;
		Case 2000: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal20), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal20), "DownVol", DisplayColor);
			End;
		Case 2100: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal21), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal21), "DownVol", DisplayColor);
			End;
		Case 2200: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal22), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal22), "DownVol", DisplayColor);
			End;
		Case 2300: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal23), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal23), "DownVol", DisplayColor);
			End;
		Case 000: 
			Begin
				Plot1(open + (open * StdDevNum * standardDevVal24), "UpVol",   DisplayColor);
				Plot2(open - (open * StdDevNum * standardDevVal24), "DownVol", DisplayColor);
			End;	
		Default: raiseruntimeerror( "Data Problem with Time" );
	End;							
End;
End;

//Copyright (c) 2010 TradeStation Technologies, Inc. All rights reserved.
Nifty Fut

Last edited by nTupLe2; 14-01-2014 at 11:08 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to nTupLe2 For This Useful Post:
  #4 (permalink)  
Old 14-01-2014, 11:28 AM
sarat_ch sarat_ch is offline
Regulars
 
Join Date: Sep 2013
Posts: 208
Thanks: 100
Thanked 199 Times in 127 Posts
sarat_ch will become famous soon enoughsarat_ch will become famous soon enoughsarat_ch will become famous soon enough
Default

zor laga ke haishaa
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 14-01-2014, 11:37 AM
nTupLe2 nTupLe2 is offline
Regulars
 
Join Date: Nov 2013
Location: kolkata+WB/Country
Posts: 216
Thanks: 172
Thanked 143 Times in 96 Posts
nTupLe2 will become famous soon enoughnTupLe2 will become famous soon enoughnTupLe2 will become famous soon enough
Default

Originally Posted by sarat_ch View Post
zor laga ke haishaa


dhunraha tha holi grail TS wale mail kiya Holi crap ....
bro solution needed.
i know indiT is better than TSLab so solution required.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 14-01-2014, 11:40 AM
sarat_ch sarat_ch is offline
Regulars
 
Join Date: Sep 2013
Posts: 208
Thanks: 100
Thanked 199 Times in 127 Posts
sarat_ch will become famous soon enoughsarat_ch will become famous soon enoughsarat_ch will become famous soon enough
Default

AFAIK, there are few different categories of volatility clouds. Which one are you looking for?

Moreover, I know of someone who uses the concept of volatility cloud successfully...

But before I can guide you I need my answer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 14-01-2014, 11:47 AM
sarat_ch sarat_ch is offline
Regulars
 
Join Date: Sep 2013
Posts: 208
Thanks: 100
Thanked 199 Times in 127 Posts
sarat_ch will become famous soon enoughsarat_ch will become famous soon enoughsarat_ch will become famous soon enough
Default

The basic foundation is concentrated around the process of figuring out the abundance and quantity of volatility around various price levels from historical data and project the same into the future.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 14-01-2014, 12:05 PM
nTupLe2 nTupLe2 is offline
Regulars
 
Join Date: Nov 2013
Location: kolkata+WB/Country
Posts: 216
Thanks: 172
Thanked 143 Times in 96 Posts
nTupLe2 will become famous soon enoughnTupLe2 will become famous soon enoughnTupLe2 will become famous soon enough
Default

Originally Posted by sarat_ch View Post
The basic foundation is concentrated around the process of figuring out the abundance and quantity of volatility around various price levels from historical data and project the same into the future.

so what are the types and category in vol cloud bro ??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 14-01-2014, 12:40 PM
sarat_ch sarat_ch is offline
Regulars
 
Join Date: Sep 2013
Posts: 208
Thanks: 100
Thanked 199 Times in 127 Posts
sarat_ch will become famous soon enoughsarat_ch will become famous soon enoughsarat_ch will become famous soon enough
Default

Originally Posted by csayantan View Post
so what are the types and category in vol cloud bro ??

Many are there. Even the categories have their own sub categories. But thats not important. Which category are you looking for is a more important question.

I am sorry I cant be of much help unless I get that input
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 14-01-2014, 01:27 PM
nTupLe2 nTupLe2 is offline
Regulars
 
Join Date: Nov 2013
Location: kolkata+WB/Country
Posts: 216
Thanks: 172
Thanked 143 Times in 96 Posts
nTupLe2 will become famous soon enoughnTupLe2 will become famous soon enoughnTupLe2 will become famous soon enough
Default

Originally Posted by sarat_ch View Post
Many are there. Even the categories have their own sub categories. But thats not important. Which category are you looking for is a more important question.

I am sorry I cant be of much help unless I get that input

provide me the link of that.that help i think u can do at first hand.
this one i think.

SIMPLY LIKE BOLLINGER BANDS WITH ST DEV1 AND ST DEV2,but on hourly basis.

Last edited by nTupLe2; 14-01-2014 at 01:29 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to nTupLe2 For This Useful Post:
Reply

indiTraders - Forum for the Active Indian Trader > Tools > Software > Tradestation


Tags
software, trade forex

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 06:00 PM.


vBulletin Copyright by vBulletin

Content Relevant URLs by vBSEO 3.3.2