AddToComposite( Close,  "~SEC"+SectorID(0), "X" );
AddToComposite( Close, "~IND"+IndustryID(0),  "X" );
Buy=0;
 
// (run scan over all symbols - only once after data update - (say per
Day).
 
 
// Now ranking formula (for exploration):
Filter = Status("lastbarinrange");

sec = Foreign( "~SEC"+SectorID(0), "C" );
ind = Foreign("~IND"+IndustryID(0), "C");

AddTextColumn( SectorID(1), "Sector name" );
AddTextColumn( IndustryID(1), "Industry name");
AddColumn( ROC( sec, 14 ), "Sector ROC" );
AddColumn( ROC( ind, 14 ), "Industry ROC" );
AddColumn( ROC( Close, 14 ), "Symbol ROC" );

SetSortColumns( -5, -6, -7 ); 


jk


--- In [email protected], Herman <[EMAIL PROTECTED]> wrote:
>
> could someone repost TJs code??
> 
> thanks,
> herman
> 
> Thursday, February 1, 2007, 7:01:09 AM, you wrote:
> 
> > Tomasz,
> 
> > That AFL you posted is sweet. Thanks alot!!  Have you got any other
> > secet afl code? Keep up the good work.
> 
> 
> 
> > 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
>


Reply via email to