PureBytes Links
Trading Reference Links
|
Hello,
You are very close, the only thing you forgot is that name()
returns string and string constants
in AFL must be enclosed in double quotes:
rightstock = name() == "SP-500"; // must put SP-500 in
double quotation marks.
Best regards,
Tomasz Janeczko
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=schildroth@xxxx
href="">schildroth@xxxx
To: <A title=amibroker@xxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Monday, June 18, 2001 12:28
AM
Subject: [amibroker] Stock specific
scan
Is there a way to filter the stock ticker within
AFL?I am trying to write one daily scan routine that incorporatesall
my different scans. Since some of the scans look at all the stocks
in my database I don't want to filter any out using the "Apply to"
selection.However, several of the scans only look at the
S&P500 or NDX. Is there a way to check the ticker name within
AFL? It seems like name() should do the trick, but I only get
errors. Here's what I'm using:
rightstock=name()==SP-500;Thanks in
advance,SchildrothYour
use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|