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

Re: Stock specific scan



PureBytes Links

Trading Reference Links

Tomasz and Dimitris:

Thank you both for your replies. It works great now.

--- In amibroker@xxxx, "Tomasz Janeczko" <tj@xxxx> wrote:
> 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
> ----- Original Message ----- 
> From: schildroth@xxxx 
> To: amibroker@xxxx 
> 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 incorporates all 
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,
> 
> Schildroth
> 
> 
> Yahoo! Groups Sponsor 
> 
> 
> 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.