Indicator buffers problem

 

Hi,

I did my own indicator and now run into problem. Basically I use multiple buffers ->

#property indicator_buffers 6
#property indicator_color1 Black  
#property indicator_color2 Red   
#property indicator_color3 Green 
#property indicator_color4 Yellow

double ZScore[];
double MAofMA[]; 
double Buff[];
double buysell[];
double aver_p[];
double StdDev[];

int init()
  {
   IndicatorShortName("ZScore");
   IndicatorDigits(Digits);
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ZScore);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1,MAofMA);
   SetIndexStyle(2,DRAW_LINE);
   SetIndexBuffer(2,Buff);
   SetIndexStyle(3,DRAW_LINE);
   SetIndexBuffer(3,buysell);

   SetIndexBuffer(4,aver_p);
   SetIndexBuffer(5,StdDev);
   return(0);
}

I want to draw lines for the  first 4 buffers, but I don't want to see any info about 2 last buffers as I only  use them for calculate the values. When I start my indicator the scale is not as expected because fifth buffer affects it.  


Is there a way to fix this? I'm just started programming and can't figure out how to fix this. 

 
Synthacon:

Hi,

I did my own indicator and now run into problem. Basically I use multiple buffers ->

I want to draw lines for the  first 4 buffers, but I don't want to see any info about 2 last buffers as I only  use them for calculate the values. When I start my indicator the scale is not as expected because fifth buffer affects it.  


Is there a way to fix this? I'm just started programming and can't figure out how to fix this. 



Never mind, I figured it out!

#property  indicator_minimum Min_Value
#property  indicator_maximum Max_Value