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

Re: [amibroker] add explore result to watchlist automatically



PureBytes Links

Trading Reference Links

Hello,

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/ 
> 
> 
> 

------------------------ 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/l.m7sD/LIdGAA/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/