By using XU Clean Screen script, any text labels get deleted. I was using text labels to print the template name on the chart but the clean screen script gets these deleted.
So, as a solution the below indicator, to input the template name and retain it even if the clean screen script is used.