  | 
		TheGrumble 
      2011-12-14 02:50:34
	  	   	
	   
	  
	  
	  	   
	  	  
	  	  
	   	  	  
 | 	  
	  
 | 
    
 
	 
  I am trying to get database information for symbols in an indicator and I have not been able to correctly access the VectorCustom structure.  
Here is the code. 
 
cFunctions.SetForwardAndBackwardBars((int) thisPeriod[0], 0); 
VectorCustom curSym = cFunctions.GetCustomDatabaseData("Quotes", "Close", "MSFT"); 
 
int numberOfBars = sumVal.Length; 
Global.Trace("COUNT: " + curSym.Length.ToString()); 
 
 
for (int i = 0; i < numberOfBars; i++) 
{ 
//sumVal[i]= (double) curSym; 
//Global.Trace("RI: "+sumVal[i].ToString() + " " + curSym[i].ToString()); 
} 
 
result=sumVal; 
 
Any access to the VectorCustom structure produces the following error: 
 
Compilation error in 'myIndex': 
Object reference not set to an instance of an object. 
 
Any ideas? Can I get addtional info on how to best query this information from an indictor. 
 
Thanks 
 
       
       
 
 
 | 
 |