Download MetaTrader 5

Fractals

To add comments, please log in or register
Forex Trader
114287
Forex Trader  
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??
Forex Trader
114287
Forex Trader  
There are no fractals on the current (0) and previous (1) bars. By the fractal algorithm
Forex Trader
114287
Forex Trader  
Silly me!! asleep again
Thanks
Cai Liang
21248
Cai Liang  
Forex Trader:
Silly me!! asleep again
Thanks

Hai, i have same problem with you.

Did you find the answer.

Please tell me. Thanks 

To add comments, please log in or register