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

[amibroker] Re: 'CategoryRemoveSymbol' dosn't remove symbols.



PureBytes Links

Trading Reference Links

Tomasz, 

I know little about coding
and code from examples.
I was trying the possibilites 
from code examples I have seen.

Thanks for your response
and thanks for the tip.
I will keep in mind the efficient version in the future.

directaim



--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@xxx> 
wrote:
>
> It DOES remove symbols. Use View->Refresh All to update your symbol 
list.
> 
> BTW: coding like that:
> > for(i=1;i<BarCount;i++)
> > { 
> >   CategoryRemoveSymbol( "", categoryWatchlist, 1 ); 
> > }  
>  
> is the worst thing I have seen. Why do you call the same function 
so many times
> in the loop while it is perfectly enough to call it ONCE?
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "directaim" <directaim@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, June 04, 2007 7:42 PM
> Subject: [amibroker] 'CategoryRemoveSymbol' dosn't remove symbols.
> 
> 
> > 
> > I want to empty a watch list.
> > But all symbols remain in List 1,
> > wether I use at the beginning of my scan the statement:
> > 
> > CategoryRemoveSymbol( "", categoryWatchlist, 1 ); 
> > 
> > or the statements:
> > 
> > for(i=1;i<BarCount;i++)
> > { 
> >   CategoryRemoveSymbol( "", categoryWatchlist, 1 ); 
> > }  
> > 
> > or the statements:
> > 
> > for(i=1;i<BarCount;i++)
> > if( LastValue( V ) > 0 ) 
> > { 
> >   CategoryRemoveSymbol( "", categoryWatchlist, 1 ); 
> > }  
> > .
> > 
> > What am I doing wrong?
> > 
> > [Note: CategoryRemoveSymbol is AFL 2.5 which my AB version does 
> > handle]
> > 
> > 
> > 
> > Please note that this group is for discussion between users only.
> > 
> > To get 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
> > 
> > 
> > 
> > 
> >
>




Please note that this group is for discussion between users only.

To get 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/