

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Yellow
#property indicator_color2 PaleGreen


//---- buffers
double Buffer1[];
double Buffer2[];


//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {

   SetIndexStyle(0,DRAW_LINE, EMPTY, 3);
   SetIndexBuffer(0,Buffer1);
   SetIndexLabel(0,"267");
   
   SetIndexStyle(1,DRAW_LINE, EMPTY, 3);
   SetIndexBuffer(1,Buffer2);
   SetIndexLabel(1,"600");
   
   
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//---- 
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int limit;

   int counted_bars=IndicatorCounted();
   if(counted_bars<0) return(-1);
   if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
   
     for(int i=0; i<limit; i++)
       {        
         Buffer1[i]=iMA(NULL,0,267,0,MODE_SMA,PRICE_CLOSE,i);
         Buffer2[i]=iMA(NULL,0,600,0,MODE_SMA,PRICE_CLOSE,i);
         
       }
       return(0);
  }
//+------------------------------------------------------------------+