/*X_CategoryAddSymbols v2*/ //Assigns tickers to Industries, according to Watchlist membership, on a one //to one basis i.e. tickers in Watchlist 0 are assigned to Industry 0 etc. //Adds an Exploration report to X_CategoryAddSymbols v1 //Tested OK on AB v4.9 Filter = 1; Count = 0; for(i = 0; i < 63; i++)//"W", the Watchlist number, is limited to 63 for v4.9 and below. { if(StrLeft(CategoryGetName(categoryWatchlist,i),4) != "List") { Count = Count + 1; } } for(W = 0; W < Count; W++) { WLName = CategoryGetName(categoryWatchlist,W); Ticker = WriteIf(InWatchList(W),Name(),""); AddTextColumn(Ticker,WLName); if(InWatchList(W)) { CategoryAddSymbol("",categoryIndustry,W); } }