Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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);
}