#property indicator_chart_window
//#property indicator_separate_window
#property indicator_buffers 14
#property indicator_color1 LightBlue
#property indicator_color2 LightBlue
#property indicator_color3 LightBlue
#property indicator_color4 LightBlue
#property indicator_color5 LightBlue
#property indicator_color6 LightBlue

#property indicator_color7  Blue
#property indicator_color8  Blue
#property indicator_color9  Blue
#property indicator_color10 Blue
#property indicator_color11 Blue
#property indicator_color12 Blue

#property indicator_color13 Yellow
#property indicator_color14 Red

//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];
double ExtMapBuffer5[];
double ExtMapBuffer6[];

double ExtMapBuffer7[];
double ExtMapBuffer8[];
double ExtMapBuffer9[];
double ExtMapBuffer10[];
double ExtMapBuffer11[];
double ExtMapBuffer12[];
double ExtMapBuffer13[];
double ExtMapBuffer14[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE,EMPTY,1,indicator_color1);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexStyle(1,DRAW_LINE,EMPTY,1,indicator_color2);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexStyle(2,DRAW_LINE,EMPTY,1,indicator_color3);
   SetIndexBuffer(2,ExtMapBuffer3);
   SetIndexStyle(3,DRAW_LINE,EMPTY,1,indicator_color4);
   SetIndexBuffer(3,ExtMapBuffer4);
   SetIndexStyle(4,DRAW_LINE,EMPTY,1,indicator_color5);
   SetIndexBuffer(4,ExtMapBuffer5);
   SetIndexStyle(5,DRAW_LINE,EMPTY,1,indicator_color6);
   SetIndexBuffer(5,ExtMapBuffer6);
   
   SetIndexStyle(6,DRAW_LINE,EMPTY,1,indicator_color7);
   SetIndexBuffer(6,ExtMapBuffer7);
   SetIndexStyle(7,DRAW_LINE,EMPTY,1,indicator_color8);
   SetIndexBuffer(7,ExtMapBuffer8);
   SetIndexStyle(8,DRAW_LINE,EMPTY,1,indicator_color9);
   SetIndexBuffer(8,ExtMapBuffer9);
   SetIndexStyle(9,DRAW_LINE,EMPTY,1,indicator_color10);
   SetIndexBuffer(9,ExtMapBuffer10);
   SetIndexStyle(10,DRAW_LINE,EMPTY,1,indicator_color11);
   SetIndexBuffer(10,ExtMapBuffer11);
   SetIndexStyle(11,DRAW_LINE,EMPTY,1,indicator_color12);
   SetIndexBuffer(11,ExtMapBuffer12);
   
   SetIndexStyle(12,DRAW_LINE,EMPTY,2,indicator_color13);
   SetIndexBuffer(12,ExtMapBuffer13);
   SetIndexStyle(13,DRAW_LINE,EMPTY,2,indicator_color14);
   SetIndexBuffer(13,ExtMapBuffer14);
//----
   return(0);
  }

int deinit()
  {
   return(0);
  }

int start()
  {
   int i,j,limit,counted_bars=IndicatorCounted();
   
   
   if(counted_bars<0) return(-1);
   if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
   
   for(i=0; i<limit; i++){
      ExtMapBuffer1[i]=iMA(NULL,0,3,0,MODE_EMA,PRICE_CLOSE,i);
      ExtMapBuffer2[i]=iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,i);
      ExtMapBuffer3[i]=iMA(NULL,0,8,0,MODE_EMA,PRICE_CLOSE,i);
      ExtMapBuffer4[i]=iMA(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,i);
      ExtMapBuffer5[i]=iMA(NULL,0,12,0,MODE_EMA,PRICE_CLOSE,i);
      ExtMapBuffer6[i]=iMA(NULL,0,15,0,MODE_EMA,PRICE_CLOSE,i);
      
      ExtMapBuffer7[i]=iMA(NULL,0,30,0,MODE_EMA,PRICE_CLOSE,i);
      ExtMapBuffer8[i]=iMA(NULL,0,35,0,MODE_EMA,PRICE_CLOSE,i);
      ExtMapBuffer9[i]=iMA(NULL,0,40,0,MODE_EMA,PRICE_CLOSE,i);
      ExtMapBuffer10[i]=iMA(NULL,0,45,0,MODE_EMA,PRICE_CLOSE,i);
      ExtMapBuffer11[i]=iMA(NULL,0,50,0,MODE_EMA,PRICE_CLOSE,i);
      ExtMapBuffer12[i]=iMA(NULL,0,60,0,MODE_EMA,PRICE_CLOSE,i);
      
      ExtMapBuffer13[i]=iMA(NULL,0,100,0,MODE_EMA,PRICE_CLOSE,i);
      ExtMapBuffer14[i]=iMA(NULL,0,200,0,MODE_EMA,PRICE_CLOSE,i);
   }
   

   return(0);
  }
//+------------------------------------------------------------------+