PureBytes Links
Trading Reference Links
|
hi Tomasz,
it would be great if there were AFL commands for working with watchlists on
the fly. I've wished for these many times.
maybe something like these:
WatchlistGetTickers(WatchlistName) --> ListOfTickersInWatchlist
WatchlistPutTicker(WatchlistName, Ticker) [adds Ticker to Watchlist]
WatchlistEmpty(WatchlistName) [removes all tickers from Watchlist]
WatchlistContains(WatchlistName, Ticker) --> TickerIsInWatchlistBoolean
make sense? any chance of adding something like these at some point?
thanks,
dave
> Yes there is a way but involves scripting.
>
> Condition = LastValue( C > MA( C, 50 ) );
>
> ticker = Name();
>
> wlnumber = 1;
>
> EnableScript("jscript");
>
> <%
>
> if( AFL("condition" ) )
>
> {
>
> AB = AFL.CreateObject("Broker.Application");
>
> AB.Stocks( AFL("ticker" ) ).WatchListBits |= 1 << AFL( "wlnumber" );
>
> }
>
> %>
>
> Buy=0;
>
>
> Use View->Refresh All to refresh symbol list.
>
> Hope this helps.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "kk12338" <kk2628@xxxxxxxxxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, September 05, 2003 3:13 PM
> Subject: [amibroker] add explore result to watchlist automatically
>
>
> > Hi,
> >
> > I have an AFL explore for different criteria like MA cross, Vol, ATR,
> > etc a total 15 of them. Currently I have to manually select those
> > stocks meeting certain criteria and use "add selected results to
> > watchlist..." in different watchlist and before doing this I have to
> > empty the watchlist.
> >
> > Is there an automatic way so that I can empty the watchlist then add
> > these stocks to the respective watchlist based on different criteria ?
> >
> > I see there is a getcategorysymbols(), I think a putcategorysymbols()
> > may help.
> >
> > Many thanks
> > KK
> >
> >
> >
> > 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/
> >
> >
> >
>
>
> 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/
>
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
ReplayTV: Control live television
Special Sale: 50% off ReplayTV
CNet Ranked #1 over Tivo!
http://us.click.yahoo.com/I93ZAD/A6qGAA/ySSFAA/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/
|