Deleting Indicator In chart using indicator_handle

 

hi 

i define a function a to add moving average to my chart with pressing a button

//+------------------------------------------------------------------+
//| Function to draw Moving Average                                  |
//+------------------------------------------------------------------+
void DrawMovingAverage(int period, color clr, int width)
  {
   ma_handle = iMA(NULL, 0, period, 0, MODE_SMA, PRICE_CLOSE);
   if (ma_handle != INVALID_HANDLE)
     {
      ChartIndicatorAdd(0, 0, ma_handle);
      //IndicatorSetInteger(ma_handle, INDICATOR_COLOR_INDEX, 0, clr);
      //IndicatorSetInteger(ma_handle, INDICATOR_WIDTH, width);
     }
  }

it works good and program add a moving avgerage to chart

i have some questions

1- how can i remove this indicator from chart with which command? 
 is any way to remove based on calling ma_handle  


2- how can i change linewidth of moving average in mql5 program? 

Moving Average - Trend Indicators - Technical Indicators - Price Charts, Technical and Fundamental Analysis - MetaTrader 5 Help
  • www.metatrader5.com
The Moving Average Technical Indicator shows the mean instrument price value for a certain period of time. When one calculates the moving average...