Ok, it had a missing { and shoulda given you a syntax err.
This will work:
WlStart = 4;
WlEnd = 10;
_TRACE("# DBGVIEWCLEAR");
for (WatchlistNum = WlStart; WatchlistNum <= WlEnd; WatchlistNum++)
{ List = CategoryGetSymbols(categoryWatchlist, WatchlistNum);
for (i=0; (sym = StrExtract(List, i)) != ""; i++)
{
if(sym != Name())
{
_TRACE(sym );
}
}
}
Do you know how to run debugview? If you do it will show all of the tickers
in the watchlists.
Make sure the ticker you have in the chart is NOT one of those in the
watchlists. Set Apply to = "current symbol"
d
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ken Close
> Sent: Tuesday, August 08, 2006 10:27 PM
> To: [email protected]
> Subject: RE: [amibroker] Re: Dynamic Naming of Composites
>
> >>> You set the AA window to current symbol.
>
> Didn't work for me, although highly likely I was doing
> something wrong.
> It accessed the single symbol and stopped....no looping, no
> adding up composites.
>
> Stuck....
>
> Ken
>
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of dingo
> Sent: Tuesday, August 08, 2006 4:06 PM
> To: [email protected]
> Subject: RE: [amibroker] Re: Dynamic Naming of Composites
>
> 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: [email protected]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Metasan
> > Sent: Tuesday, August 08, 2006 4:03 PM
> > To: [email protected]
> > Subject: [amibroker] Re: Dynamic Naming of Composites
> >
> > --- In [email protected], Ken Close <[EMAIL PROTECTED]> 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
> >
> >
>
>
>
> 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
>
>
>
>
>
>
>
>
>
> 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
>
>
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/