PureBytes Links
Trading Reference Links
|
Herman,
I do not know how to retrieve the WL No of the ApplyTo filter, but,
even if I could it would be useless for your example.
When you use
List=CategoryGetSymbols(categoryWatchlist,12);
you will get the members of WL12, no matter what ApplyTo is used.
Try, for example, to use *current stock [only one stock selected] and
explore for the n=1 last quotations with
List=CategoryGetSymbols(categoryWatchlist,12);
for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
{
SetForeign(sym);
AddColumn(C,sym);
}
RestorePriceArrays();
Filter=1;
AddColumn(C,"current stock");
You will see that the columns are according to WL12 members and have
nothing to do with the selected filter.
On the other side, we may have even two identical Watchlists, it is
allowed, with same polulation, same stocks, same WL comma separated
string.
We could do it perhaps if you were working with Groups, since the
belong relation is exclusive for Groups.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Herman vandenBergen" <psytek@xxxx>
wrote:
> MessageThanks Graham, this is a good start but it returns all the
watchlist
> numbers the current stock belongs to.... I want to know only the
one that
> the filter is set to. basically to prevent having to update the N in
> GetCategorySymbols( categoryWatchlist, N); each time I use a
different
> watchlist.
>
> Any way to do that you think?
>
> h
>
>
>
>
> -----Original Message-----
> From: Graham [mailto:gkavanagh@x...]
> Sent: December 13, 2003 5:24 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] Reading AA Filter setting in afl
>
>
> Try this
> for(i=0;i<=63;i++)
>
> {if(InWatchList(i))AddColumn(i,"wl",1);}
>
> Filter=1;
>
>
>
> Cheers,
> Graham
> http://groups.msn.com/asxsharetrading
> http://groups.msn.com/fmsaustralia
>
> -----Original Message-----
> From: Herman vandenBergen [mailto:psytek@x...]
> Sent: Saturday, 13 December 2003 5:14 PM
> To: AmiBroker
> Subject: [amibroker] Reading AA Filter setting in afl
>
>
> Hello,
>
> is there a way to determine, in afl, the watchlist number of
the one
> selected in the Apply-To, Filter, Watchlist setting?
>
> many thanks for any help you can give,
>
> h
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|