Tuesday, November 13, 2012

We often need to find tickers having similar key worlds like 'holding', 'infra' etc in our Amibroker databases.
For this a very simple AFL code can be used.
Write your keyword (keyword INFRA being the default) in the 'Parameters' field of the Automatic Analysis window strictly in capital letters else you shall not get any results.

keyword=ParamStr("Keyword in Capitals","INFRA");//use Capital Letters only //enter the string/keyword which you want to search in tickersif(StrFind(Name(),keyword))Filter=1;AddColumn(C,"c",1.2);AddColumn(Status("StockNum"),"no",1);