How to Add Column of Group for ticker list

I would like to add a column of Group for stock lists as below.
How to Add Column of Group for ticker list?

Untitled


list1 = "SMCI,DOX,NVDA";  // 
list2 = "CPRX,CEIX,TW";  //


_N( newbuy1TickerList = ParamStr( "Tickers1", list1 ) );
_N( newbuy2TickerList = ParamStr( "Tickers2", list2 ) );

in_list1 = StrFind(","+list1+",", ","+Name()+",");
in_list2 = StrFind(","+list2+",", ","+Name()+",");

Thanks!!!

Filter = in_list1 OR in_list2;
2 Likes