In explorer, a variable show not assigned.

Hello,

The following codes use for explorer, but it show tick1 variable not be assigned. I guess If clause statement have no run , any suggestions give to me?

THX in advance

Filter = Status( "lastbarinrange" ) ;		//display only last bar from the Analysis range
tick1 = "";

if (GetDatabaseName()=="Norgate"){
	if (StaticVarGetText("ticker1")!=""){
		tick1 = StaticVarGetText("ticker1");	
	}else{
		tick1 = getbaseindex();
	}
}
// iterate through symbols
AddTextColumn( tick1, "Correlation_Sym",1.2,colorDefault);

@chunwai,
I do not see the SaticVarSetText in your code.
You can set it at the beginning of the exploration. Try this.

if ( Status( "stocknum" ) == 0 )
{
	StaticVarSetText("ticker1","");
}

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.