¿Is there a way to define my portfolio assets in an array for using it in the asset loop? ¿Could i obtain the corresponding index for an asset in the array given its name?

Something like a HashTable or so, I know 'Assets' exists, but seems to be read only.

Thanks.