also beware your error in assets:

if(Asset == "NAS100") return("US500"); should be USTEC

if(Asset == "SPX500") return("USTEC"); should be US500