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

[amibroker] AFL-Counting



PureBytes Links

Trading Reference Links


Can I create a AFL scan that counts stocks per industry or sector that
has stocks that was triggered in a scan?

AddTextColumn(IndustryID(1),"Industry");
AddTextColumn(SectorID(1),"Sector");

Cond1 = cross(macd(),signal());
Count = Sum(Cond1,20);


Looking for the number of stocks that fit the criteria of Cond1, by
making a AFL scan that counts the number of stocks in each sector and
Industry that have the Cond1 criteria.

I am using yahoo as a database.

Is this possible with amibroker??

Thanks!

NC







------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

<*> 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/