hello,
iam working on an simple Ea, but iam not an professional coder. Now iam searching the metod for use Fractal indicator data in the Ea. I have found a code to find the last Fractal data in an Ea, and this Code works fine:
for(int a=1;a<Bars;a++)
{
if(iFractals(NULL,LowerTF,MODE_UPPER,a)!=0)
{
LastUpFractal=iFractals(NULL,LowerTF, MODE_UPPER,a);
TimeOfLastUpFractal=Time[a];
break;
}
}
now i am searching a possibility to found also the data from the high low Fractal indicator before the last value, for example the value of the second high before the last high, is this possible?
thank you in advance
Zickzack
iam working on an simple Ea, but iam not an professional coder. Now iam searching the metod for use Fractal indicator data in the Ea. I have found a code to find the last Fractal data in an Ea, and this Code works fine:
for(int a=1;a<Bars;a++)
{
if(iFractals(NULL,LowerTF,MODE_UPPER,a)!=0)
{
LastUpFractal=iFractals(NULL,LowerTF, MODE_UPPER,a);
TimeOfLastUpFractal=Time[a];
break;
}
}
now i am searching a possibility to found also the data from the high low Fractal indicator before the last value, for example the value of the second high before the last high, is this possible?
thank you in advance
Zickzack