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

[amibroker] Re: Reading AA Filter setting in afl



PureBytes Links

Trading Reference Links

Herman,
I think you need a Status("ApplyTo").
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Herman vandenBergen" <psytek@xxxx> 
wrote:
> Thank you DT, InLine...
>   -----Original Message-----
>   From: DIMITRIS TSOKAKIS [mailto:TSOKAKIS@x...]
>   Sent: December 13, 2003 10:43 PM
>   To: amibroker@xxxxxxxxxxxxxxx
>   Subject: [amibroker] Re: Reading AA Filter setting in afl
> 
> 
>   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);
> 
>   But the number "12" would not be a constant, it would be a 
function or afl
> code that would return the number for the current watchlist 
selected in the
> Filter. This would mean that my code would track changes i made to 
the
> filter settings without having to edit my code each time.
> 
>   I prefer code that adapts to my preferences/settings without 
having to
> edit the code (WL# here) each time - and forget it now and then :-)
> 
>   Ideally, and Tomasz will eventually get to that, we should be 
able to
> set&retrieve all/most user settings in code. Many are already 
implemented.
> 
>   have a great day,
>   herman
> 
>   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
> 
> 
> 
>   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/