Thank you very much.
Here I have another dubt. I want to check if a previous bar closed over the last upper fractal.
Suppose for instance that previous upper fractal was on bar 6.
int start()
{
int BREAK_UP, u;
BREAK_UP=0 ;
for(u=0; u==6; u++)
if (Close[u]>iFractals(NULL,NULL,MODE_UPPER,6))
{
BREAK_UP=1 ;
u = 6 ;
}
Print(BREAK_UP);
}
It doesn't work but I don't know where is the problem. Thank you!
Alberto_jazz:
Here I have another dubt. I want to check if a previous bar closed over the last upper fractal.
Suppose for instance that previous upper fractal was on bar 6.
Here I have another dubt. I want to check if a previous bar closed over the last upper fractal.
Suppose for instance that previous upper fractal was on bar 6.
int lastFract=6; int highest = Highest(NULL, 0, MODE_HIGH, Bars, 0); if (highest != lastFract) // Last fractal not highest.


You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, I need to obtain the distance from the last fractal, but I seem this code doesn’t work.
Could you help me?
Thank you!
int start()
{
int u, Distance ;
for(u=Bars; u>0; u--)
if (iFractals(NULL,NULL,MODE_LOWER,u)>0)
{
Distance = BARS - u ;
break ;
}
Print(Distance);
}