Fractals

 
How do I access Fractals in my EA

I can initialse my starting values by using a down counting while loop from Bars to >= 0 and the following code

Valueh = iFractals("EURUSD", 0, MODE_UPPER, i);
if (Valueh > 0) LastValueh = Valueh;

However in the Main EA this code

Valueh = iFractals("EURUSD", 0, MODE_UPPER, 1);
if (Valueh > 0) LastValueh = Valueh;

produces only zero values on each tick even though the chart values are being updated properly.
What am I doing wrong please?

Also can someone clarify the following statement from the fractal description of use.
In other words, you should not close a buy transaction, if the fractal is lower than the Alligator’s Teeth, and you should not close a sell transaction, if the fractal is higher than the Alligator’s Teeth. Are we talking the higher or lower fractal??
 
There are no fractals on the current (0) and previous (1) bars. By the fractal algorithm
 
Silly me!! asleep again
Thanks
 
Forex Trader:
Silly me!! asleep again
Thanks

Hai, i have same problem with you.

Did you find the answer.

Please tell me. Thanks