Hi,
May be this is novice question,
how explore only tagged symbols list using Categorygetsymbols() categorytag
You can explore only the symbols assigned to a specific categoryTag using GetCategorySymbols() and filtering the exploration based on membership in that tag list.
Here is the AFL example:
// Get comma-separated list of symbols assigned
// to the specified categoryTag
// (second parameter = 1 → retrieve by category index)
tagList = GetCategorySymbols(categoryTag, 1);
// Add leading and trailing commas to avoid
// partial symbol matches (e.g., ABC matching ABCD)
symbolList = "," + tagList + ",";
// Add commas around the current symbol name
// to ensure exact string comparison
currentSym = "," + Name() + ",";
// Include only symbols that exist in the selected categoryTag
Filter = StrFind(symbolList, currentSym) > 0;
// Example column for Exploration output
AddColumn(Close, "Price", 1.2);
GetCategorySymbols(categoryTag, 1) returns a comma-separated list of symbols assigned to the given tag.
The comma wrapping ensures exact symbol matching and prevents partial matches.
This will limit the Exploration results to only the tagged symbols.
2 Likes