| 
 PureBytes Links 
Trading Reference Links 
 | 
>From the Help files
INWATCHLIST
- watch list membership test Information / Categories
SYNTAX  inwatchlist( listno )
 
RETURNS NUMBER
 
FUNCTION  Checks if the stock belongs to a watch list number listno. If yes
- the function returns 1 otherwise 0.  
EXAMPLE Filter= InWatchList( 3 ) OR InWatchList( 5 );  
SEE ALSO    
See updated/extended version on-line.
Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia
-----Original Message-----
From: andy_kovacs [mailto:andy_kovacs@xxxxxxxxxxx] 
Sent: Thursday, 17 April 2003 8:38 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Filter and watchlist
Hi.
I wonder if anyone can help.
Id like to set up an explore that operates on all shares in a 
watchlist. For example, I have all my current positions set up in a 
watchlist called "Bets". Each night I run an explore that does the 
following:
AddColumn(C,"Close");
AddColumn(L-(2*ATR(20)),"LongStop here");
AddColumn(H+(2*ATR(20)),"ShortStop here");
I then input these values as my trailing stops into my order system.
However, to streamline things and not have to set the filters 
manually Id like to use some filter thast instructs AB to run the 
explor on all shares in "bets" watchlist.
Ive tried - 
filter=c>0 and watchlist=1
but it prints out the whole database. Any suggestions anyone? 
Andy
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 ---------------------~-->
Get a FREE REFINANCE QUOTE - click here!
http://us.click.yahoo.com/2CXtTB/ca0FAA/i5gGAA/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/ 
 
 |