Buffer Problem

 

I can’t find the problem of this indicator.

I set it to show two separate charts (High and Low price) simultaneously, but it just shows one chart (High or Low). It seems that the problem is about the buffer adjustment. However, I couldn’t find the problem

 even by printing the values.

Please help me.


//##############################################

//#############################################

#property indicator_separate_window

#property indicator_buffers 2

#property indicator_color1 Aqua

#property indicator_color2 Yellow

 

extern double Tavan = -1;

extern string symbol3 = "GBPUSD";

extern int Time_p=0;

extern int PeriodROC=5;

double     Buffer1[];

double     Buffer2[];

double     Buffer3[];

 

int init()

  {

    SetIndexBuffer(0,Buffer1);

    SetIndexStyle(0,DRAW_LINE);

    IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));

   

    SetIndexBuffer(1,Buffer2);

    SetIndexStyle(1,DRAW_LINE);

    IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));

   return(0);

  }

 

int start()

  {

   int counted_bars=IndicatorCounted();

   int i,limit;

   if(counted_bars==0)

      limit=Bars-PeriodROC;

   if(counted_bars>0)

      limit=Bars-counted_bars;

   limit--;

   for(i=limit; i>=0; i--)

    Buffer1[i]=iHigh(symbol3,Time_p,i+1);

    Buffer2[i]=iLow(symbol3,Time_p,i+1);

   

    Print(iHigh(symbol3,Time_p,i+1),"_",iLow(symbol3,Time_p,i+1),"_",Buffer1[i],"_",Buffer2[i]);

   

   return(0);

  }

 
hf_t: I set it to show two separate charts
  1. Don't paste code
    Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. You set it to show a separate window below the chart. #property indicator_separate_window The only other option is to draw lines on the chart. There is no "two separate charts"
Reason: