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

RE: [amibroker] wild card search in amibroker symbol search dialog



PureBytes Links

Trading Reference Links

I can’t give you complete code, but there is a string find function you should be able to put to work. Here’s some code to modify:

 

    list = CategoryGetSymbols( categoryIndex,0); //Get a list of Symbols marked as INDEX

   

    for(i = 0; i < 30; i++) //Search up to 30 Index symbols. NOTE: *COMP* has priority over *IXIC and $NDX* priority over ^NDX

    {

        tempName = StrExtract(list,i);

        if(StrFind(tempName,"tech") code to add to watchlist

    }

--

Terry

-----Original Message-----
From:
amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Rajeev Mundra
Sent: Thursday, September 01, 2005 13:52
To:
amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] wild card search in amibrokoer symbol search dialog

 

hello
here is a small request which can help in some unique ways.

if i could do wildcard search on stock names i would be great.

say if there are 10 tech companies in my database and all have names ending with tech eg.

infosystech
wiprotech
patnitech
.....

then if i want to make a watch list only of techs it would be very easy to just search like
*tech*

asking this since many stocks name has the sector they are in and it becomes easy to catch them.. atleast to have a quick glance...

also there should be facility to add the search result.. one or many at a time to some watchlist.

do let me know if there is any alternate way to do this which is equally easy (more or less)

cheers
rajeev





Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS