Display an indicator

 
Hello,

I am learning to code in mql5 and I would like to know how to display the indicators on the graph? And how to remove the Moving Average indicator (20) when I test.


int BolBandsHandle;              

int OnInit()
  {

  BolBandsHandle = iBands(NULL,PERIOD_H4,20,0,2,PRICE_CLOSE);
  ChartIndicatorAdd(NULL, 0, BolBandsHandle);
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {

   
  }
//+------------------------------------------------------------------+
Discover new MetaTrader 5 opportunities with MQL5 community and services
Discover new MetaTrader 5 opportunities with MQL5 community and services
  • www.mql5.com
Dozens of new automated trading applications appear in the MQL5 Market every day. Choose the right app among 10,000 products and forget about unnecessary routine operations of manual trading. Sell your algorithmic trading programs through the largest store of trading applications! Kiss on billions on EURUSD The provided robot is a result of...