Hi, all. I posted an earlier comment about having a problem with an
exploration requiring numcolumns to be present when using
AddColumn/AddTextColumn within a function prior to my for loop code.
The problem went away, so I posted another message saying to ignore
it. Well, somehow it's back and I can't figure what I'm doing to
require or not require the presence of numcolumns. I don't want to use
numcolumns. This error comes up when I run the exploration
Please help!
Example excerpted code:
function ShowResults(i) //display the results of my exploration
{
AddTextColumn(DateTimeToStr(DateTimeQ[i]),"Date:");
AddColumn(i,"i:");
AddColumn(STK[i], "Stoch K-" + i,1.4,colorGreen,colorBlack,75);
AddColumn(STD[i], "Stoch D-" +
i,1.4,colorGreen,colorBlack,75);
AddTextColumn(TypeSignal,"TypeSignal",1.4,IIf(TypeSignal ==
"Long",colorGreen,colorRed),colorBlack,75);
}
// if( DBVOn ) _TRACE("BarCount:" + BarCount + " Ticker:" + Name() );
for(i = 1; i < BarCount; i++) //loop to find results to display
{
//some code here to figure out what I want to display and then:
Filter = True ; //turn on the filter once I find my results
Showresults(i) //Call my function to display results
}
Thanks,
interfool