Indicator buffers problem

Back to topics list To post a new topic, please log in or register
avatar
8
Synthacon 2016.01.17 23:58
 

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. 



avatar
8
Synthacon 2016.01.18 00:19 #
 
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


Back to topics list  

To add comments, please log in or register