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

[amibroker] Re: querying for another ticker in a scan



PureBytes Links

Trading Reference Links



try this:

NumColumns=1;
OptTick=StrRight( Name(),1);
Filter=BarIndex()==BarCount-1 AND OptTick=="O";
Column0=StrLeft(Name(),StrLen(Name())-1);
Column0Name="Base";

I think that should work...

Walt

--- In amibroker@xxxxxxxxxxxxxxx, Martin Cooney <martin@xxxx> wrote:
> Hi All,
> 
> I was wondering whether someone with a little more coding prowess 
could 
> help me out here with a code snippet ?
> 
> Essentially, in my scans I would like to query whether a seperate 
ticker 
> symbol currently exists. This is basically to ascertain whether a 
stock 
> has an associated option.
> 
> e.g if resultant scanned ticker is ABC, I'd like to have a tick in 
the 
> 'Option' column if ticker ABCO or ABCO? exists. Is this possible 
using 
> Amibroker ?
> 
> Hopefully I've explained myself properly :)
> 
> Cheers
> Martin








------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/