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

[amibroker] Set all Empty Symobls to specific group



PureBytes Links

Trading Reference Links

This is driving me crazy. I'm still learning the AFL language. I just
don't find it as flexible as VBA. Please help me write some AFL code
to scoop up all the symbols in my data base which have zero bars
(BarCount = 0) or perhaps Volume less then a certain amount and add
them to a specific group. My end goal is to use the AFL code to do the
grunt work for me so I can then use the "Organize Assignments" window
to delete the little ba$tards. I've spent more then 2 hours trying to
figure this out and my best result will only affect the active symbol.
I need some section of code that will scan the entire database.

Code:
_SECTION_BEGIN("Empty_Tickers") ;
// the code removes symbols to group number 255 
if( IsNull(BarCount) )// sets all symbols with no data to Group 255
{ 
CategoryAddSymbol("", categoryGroup, 255 ) ;
} 
Buy = 0 ;
Sell = 0 ;
_SECTION_END() ;



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/