Need guide for mql4 programming

 

Hi guys, I'm a new learner in mql4, can anyone of you here explain me what does this mean ? can i come out an ea based on the following setting ? i understand that ea doesnt allow setindexbuffer, anyone could help me out here ?

Thanks =^_^=

for(i=0; i<limit; i++)
{
if(Buffer1[i] > Buffer2[i] && Buffer1[i-1] < Buffer2[i-1]); <-----meaning = ????
b2[i] = High[i]+10*Point;
if(Buffer1[i] < Buffer2[i] && Buffer1[i-1] > Buffer2[i-1]); <-----meaning = ????
b3[i] = Low[i]-10*Point;
}
for(i=0; i<limit; i++)
{
MA5=iMA(NULL,0,Fast.MA.Period,0,MODE_SMA,PRICE_MEDIAN,i);
MA34=iMA(NULL,0,Slow.MA.Period,0,MODE_SMA,PRICE_MEDIAN,i);
Buffer1[i]=MA5-MA34;
}
for(i=0; i<limit; i++)
{
Buffer2[i]=iMAOnArray(Buffer1,Bars,Signal.period,0,MODE_LWMA,i);
}

 

Meaning = wrong :-)

You shouldn't have semi-colons after those conditional statements.

That wouldn't compile.


CB

 
cloudbreaker wrote >>

Meaning = wrong :-)

You shouldn't have semi-colons after those conditional statements.

That wouldn't compile.

CB

thanks CB, will try it out =^_^=