Count List ICB value

Hello, I am trying to insert the number of securities that are included in a certain ICB in the chart to later calculate the sectorial strength.
All the shares included in the database except the indices have the corresponding ICB assigned.
One of the difficulties that I am encountering is that for certain ICB codes such as 40501010 Airlines or 35101010 Real Estate Holding and Development
It returns the value of 1 even though there is more than one share that has that code assigned.

However for other ICB codes, the system with the same formula returns the correct value.
Does anyone know why this happens?
Thanks.-

image
image
image
image

_SECTION_BEGIN("RSPercentile%");



listICB=CategoryGetSymbols(categoryICB,StrToNum(IcbID(0)));


List=listicb;
ListQty=StrCount(List,",")+1;





_SECTION_END();

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.