Please help me to correct this indicator

 

hi

i want to shift lines ,but i cant do this

maybe help me please

i think that my problem is here

int init()

{

SetIndexBuffer(0, ExtMapBuffer1);

SetIndexStyle(0, DRAW_LINE);

SetIndexBuffer(1, ExtMapBuffer2);

SetIndexStyle(1, DRAW_LINE);

SetIndexBuffer(2, ExtMapBuffer3);

SetIndexStyle(2, DRAW_LINE);

int TimeFrame=Period();

int TF;

switch(TimeFrame)

{

case 1:

TF=1440;

case 5:

TF=288;

case 15:

TF=96;

case 30:

TF=48;

case 60:

TF=24;

case 240:

TF=15;

case 1440:

TF=1;

}

SetIndexShift(0, TF);

SetIndexShift(1, TF);

SetIndexShift(2, TF);

return(0);

}

Files:
h-m-l.mq4  4 kb
Reason: