[AsK] What the name this indi

 

Hello all

can you all tell me what the name is indi..??

and share for me

Thanks

 

Shifted or mmuty time frame high low channel probably.

maulana1989:
Hello all

can you all tell me what the name is indi..??

and share for me

Thanks

 

maulana1989

Here is a code that will do almost exactly what you have on your picture (and example how does it look on chart) :

#property indicator_chart_window

#property indicator_buffers 2

#property indicator_color1 LimeGreen

#property indicator_color2 Red

extern int length = 30;

extern int shift = 15;

double up[];

double dn[];

//

//

//

//

//

//

int init()

{

SetIndexBuffer(0,up);

SetIndexBuffer(1,dn);

return(0);

}

int start()

{

int counted_bars=IndicatorCounted();

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

int limit = MathMin(Bars-counted_bars,Bars-1);

limit = MathMax(limit,shift);

//

//

//

//

//

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

{

double max = High;

double min = Low;

for (int k=1; k<length-shift; k++)

{

max = MathMax(max,High);

min = MathMin(min,Low );

if ((i-k)>=0)

{

max = MathMax(max,High);

min = MathMin(min,Low );

}

}

up = max;

dn = min;

}

return (0);

}

With some length and shift experimenting, you are going to get exactly the same valuesIt is looking in future values to do that, so it is a repainting indicator

maulana1989:
Hello all

can you all tell me what the name is indi..??

and share for me

Thanks

Files:
high_lows.gif  42 kb