//+------------------------------------------------------------------+
//|                                                      iCustom.mq4 |
//|                                                                  |
//|                                                                  |
//+------------------------------------------------------------------+
#property strict
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Custom deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   Comment("");
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
//---
   Comment(iCustom(NULL,0,"название индикатора",0,-1),"\n",
           iCustom(NULL,0,"название индикатора",0,0),"\n",
           iCustom(NULL,0,"название индикатора",0,1),"\n",
           "\n",
           iCustom(NULL,0,"название индикатора",1,-1),"\n",
           iCustom(NULL,0,"название индикатора",1,0),"\n",
           iCustom(NULL,0,"название индикатора",1,1),"\n",
           "\n",
           iCustom(NULL,0,"название индикатора",2,-1),"\n",
           iCustom(NULL,0,"название индикатора",2,0),"\n",
           iCustom(NULL,0,"название индикатора",2,1),"\n",
           "\n",
           iCustom(NULL,0,"название индикатора",3,-1),"\n",
           iCustom(NULL,0,"название индикатора",3,0),"\n",
           iCustom(NULL,0,"название индикатора",3,1),"\n",
           "\n",
           iCustom(NULL,0,"название индикатора",4,-1),"\n",
           iCustom(NULL,0,"название индикатора",4,0),"\n",
           iCustom(NULL,0,"название индикатора",4,1),"\n",
           "\n",
           iCustom(NULL,0,"название индикатора",5,-1),"\n",
           iCustom(NULL,0,"название индикатора",5,0),"\n",
           iCustom(NULL,0,"название индикатора",5,1),"\n",
           "\n",
           iCustom(NULL,0,"название индикатора",6,-1),"\n",
           iCustom(NULL,0,"название индикатора",6,0),"\n",
           iCustom(NULL,0,"название индикатора",6,1),"\n",
           "\n",
           iCustom(NULL,0,"название индикатора",7,-1),"\n",
           iCustom(NULL,0,"название индикатора",7,0),"\n",
           iCustom(NULL,0,"название индикатора",7,1),"\n"
           );

//--- return value of prev_calculated for next call
   return(rates_total);
  }
//+------------------------------------------------------------------+
