string shortname = "MACD_SHORTNAME"; IndicatorSetString(INDICATOR_SHORTNAME,shortname); ChartIndicatorDelete(0,window,shortname);