[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Numcolumns error reoccuring



PureBytes Links

Trading Reference Links

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



------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/