How I get the name of the symbol which is locked?

Hello,

I have two chart, one is locked with market index. I would like to get the name of that index name using name().
However I only get the variable one. One solution is to get the title of the chart, but how to do it,