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

RE: [amibroker] Re: Dynamic Naming of Composites



PureBytes Links

Trading Reference Links

Can be done in AFL:

You set the AA window to current symbol.


WlStart = 4;
WlEnd = 10;

For (WatchlistNum = WlStart; WatchlistNum <= WlEnd; WatchlistNum++) 
    List = CategoryGetSymbols(categoryWatchlist, WatchlistNum);
    For (i=0; (sym = StrExtract(List, i)) != ""; i++)
    {
        if(sym != Name())
        {
        // do your addtocomposite here
        }
    }
}

I just cobbled this together - didn't run it

d

 

> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx 
> [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Metasan
> Sent: Tuesday, August 08, 2006 4:03 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Dynamic Naming of Composites
> 
> --- In amibroker@xxxxxxxxxxxxxxx, Ken Close <ken45140@xxx> wrote:
> >
> >  That is what I figured but there are what, 8000 stocks on TC2005.  
> My
> > watchlists have 10 to 25 stocks in only 10 watchlists....I keep
> hoping there
> > is a way to keep from cycling thru all 8000 to calculate 10.
> > 
> > Thanks,
> > Ken
> > 
> 
> Then you can write a JScript to loop through the 10 
> watchlists by setting AA.Filter(...) and invoking AA.Scan(). 
> It would be much much faster.
> 
> 
> 
> 
> 
> 
> 
> 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 other support material please check also:
> http://www.amibroker.com/support.html
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.10.7/411 - Release 
> Date: 8/7/2006
>  
>