I am using this algorithm as a base to create my own and I still can't seem to get set holdings to work. Does anyone know why?

 

Thank you in advance!