last fractal upper or lower
- Don't post pictures of code, they are too hard to read. Just edit
your (original) post and use the CODE button (Alt-S)!
(For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor - Hamed Feizi: please help me about last upper or lower fractals candle no.Help you with what? You haven't stated a problem, you haven't even stated a want. You already know you have to go back in time until you find one. What's the problem?
Hamed Feizi:
hi
please help me about last upper or lower fractals candle no.
i write this code:
int OnInit()
{
int i,j ;
for(i=1;i==200;i++)
{
if(iFractals(NULL,0,MODE_UPPER,i)!=0)
{
j=i;
Comment(j);
break;
}
}
}
but mql show error ('}' - not all control paths return a value)
pls help i will be crazy
for(i=1;i<=200;i++)
hi
please help me about last upper or lower fractals candle no.
i write this code:
int OnInit()
{
int i,j ;
for(i=1;i==200;i++)
{
if(iFractals(NULL,0,MODE_UPPER,i)!=0)
{
j=i;
Comment(j);
break;
}
}
}
but mql show error ('}' - not all control paths return a value)
pls help i will be crazy