| gwoods | 
				 
				
					
					| 
						Gold User, Member, TeleChart
					 | 
				 
				
					
					| Registered User | 
				 
				
					
					 | 
				 
				
					
					 | 
				 
				
					
					 | 
				 
				
					
					 | 
				 
				
					
					| Unsure | 
				 
			 
	 | 
	
			
				
					
				 
				
					
					| Friday, December 1, 2006 | 
				 
				
					
					| Tuesday, September 15, 2009 6:25:54 PM | 
				 
				
					
					25 [0.01% of all post / 0.00 posts per day] | 
				 
			 
	 | 
	
		
		
			
		 
	
		
		
			| 
				Thanks for all your help.  It has been a pleasure.   Until next time.....
			 | 
		 
	
		
		
			| 
				Worden has a fine product.  When will you all start tracking commodities?  I would love to use a product I have grown accustomed to. 
			 | 
		 
	
		
		
			| 
				Can other users or Worden staff access your system rules and indicators without your permission?
			 | 
		 
	
		
		
			| 
				Why are we limited to 20 years and in Telechart we can go back to 1914 or 1917?
			 | 
		 
	
		
		
			| 
				Ok, I thought that is what that option was for.  Appreciate it Bruce.  Also, can I use stockfinder indicators that I created and saved in Telechart?
			 | 
		 
	
		
		
			| 
				I am new to stockfinder and my price history stops at the beginning of 2001.
			 | 
		 
	
		
		
			
				Yes, you understood!  Thanks     The only delima is that I have to study your code until your company develops a manual for realcode. 
 
I appreciate your tact.  You have assisted me on one other occassion; I am impressed with your skill and ability to comprehend.
			 | 
		 
	
		
		
			
				I see you are creating an indicator or rule that reference a real code formula.  For instance, you may say # happy = (21+120+MJ/2) and # gogo =  Static AvgC As Single 
Static Offset(1) As Integer 
Static Start(2) As Integer 
If isFirstBar Then 
 
If we add happy + gogo = total, is this correct?
			 | 
		 
	
		
		
			
				So, this statement 'Static AvgC As Single' in the coding allows for AvgC to reference the coding below: 
 
'# Period = UserInput.Integer = 21 
Static AvgC As Single 
Static Offset(1) As Integer 
Static Start(2) As Integer 
If isFirstBar Then 
    AvgC = 0 
    Offset(0) = -(Period - 1) / 2 
    Start(0) = System.Math.Max(Offset(0), 0) 
    Offset(1) = Offset(0) + Period 
    Start(1) = System.Math.Max(Offset(1), Period) 
    Start(2) = Start(0) + Start(1) - 1 
End If 
If CurrentIndex >= Start(0) Then AvgC += Price.Last(Offset(0)) / Period 
If CurrentIndex >= Start(1) Then AvgC -= Price.Last(Offset(1)) / Period 
If CurrentIndex >= Start(2) Then 
    Dim MJ As Single = (Price.High + Price.Low + Price.Last) / 3 
    Plot = AvgC + MJ 
Else 
    Plot = Single.NaN 
End If 
 
If that is true, then how would Plot = AvgC know that it references the above code if it is not within the same realcode?  Ex.  1+1=2  but if Plot=2; how would it know it derived from 1+1=2 
			 | 
		 
	
		
		
			
				How would you append that coding to this? 
 
'# Period = UserInput.Integer = 21 
Static AvgC As Single 
Static Offset(1) As Integer 
Static Start(2) As Integer 
If isFirstBar Then 
    AvgC = 0 
    Offset(0) = -(Period - 1) / 2 
    Start(0) = System.Math.Max(Offset(0), 0) 
    Offset(1) = Offset(0) + Period 
    Start(1) = System.Math.Max(Offset(1), Period) 
    Start(2) = Start(0) + Start(1) - 1 
End If 
If CurrentIndex >= Start(0) Then AvgC += Price.Last(Offset(0)) / Period 
If CurrentIndex >= Start(1) Then AvgC -= Price.Last(Offset(1)) / Period 
If CurrentIndex >= Start(2) Then 
    Plot = AvgC 
Else 
    Plot = Single.NaN 
End If 
			 | 
		 
	
		 
	
 |