Download MetaTrader 5

Fractals

To add comments, please log in or register
Order a robot or an indicator for MetaTrader. The Freelance service will help you!
Forex Trader
114255
Forex Trader 2007.02.03 12:54 
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
114255
Forex Trader 2007.02.08 18:17  
There are no fractals on the current (0) and previous (1) bars. By the fractal algorithm
Forex Trader
114255
Forex Trader 2007.02.08 22:29  
Silly me!! asleep again
Thanks
Cai Liang
17111
Cai Liang 2015.08.02 14:32  
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