FRACTALS DEFINITION
-
fractals usually repaint but once the complete the formation they stay there. i tried to use the first up or down fractal that was completed but no luck. i put in the more settings id1 for up or down but the results were different. is there a way we can define the first up or down completed fractal before the price action now??
-
Fractal formation is something like up, up, top (arrow paints here), down, down.
So the fractal appears on candle id 2So you want the ea to remember the last fractal state, was it up or down? This can be done with a variable.
-
I need both states, i need the last up and the last down so i can start a buy or a sell trade
-
but we need the 'last' fractal always compared with the candle id0 so the system can move on
-
i cannot use the variables section, i dont have the skills yet!! do you have any idea how we can set that variable?? .
-
here.
https://fxdreema.com/shared/XLFjbWlcd
it checks once per bar, if there is a fractal.
if it is fractal up, it modifies the variable to 1
if it is fractal down, it modifies the variable to -1now you can just check the variable value, is it 1 or -1
block 9 is actually useless, because the variable must be 1 if it is not -1 (except beginning, its 0 then)
this example doesn't care about candle 0, it just checks fractal states. if you need the fractal's price, not state (up or down), you will need more variables to store that price data.
-
yes i need the fractal price so i can compare it with candleclose id0
-
https://fxdreema.com/shared/xzRcbD5db
i modified the example to store the fractal prices, and then compare them to candle0
-
i think i put you in much trouble because i forgot to tell you that i need the the price of the last fractal up or down so i can put it in a condition compared to the candle id0. is it possible to make it?
-
yes, yes, i did just that

-
where is it?? the one you sent above?
-
@roar said in FRACTALS DEFINITION:
https://fxdreema.com/shared/xzRcbD5db
i modified the example to store the fractal prices, and then compare them to candle0
this one. at least appears to me
-
i didnt see that .. let me give a try and inform you in a while
-
i tried to use your variables to close trades and open trades when candle is above MA20 but is not working at all,
-
your link doesn't work
while in builder, go top-left, Projects -> Create a shared copy -
i dont see such button, i can send you a photo

the condition in buy is Candle>ma20 and in sell the opposite. in close i closed the buys on left and the sells on right
-

-
Hi all!
Thank you for implementing the current Fractal logic! I have similar challenge. I need to compare last 2 downwards and last 2 upwards Fractals. I mean:
- If the latest downward Fractal is lower than previous downward Fractal AND latest upward Fractal is also lower than previous upward Fractal - then it is a SELL trade.
- If latest upwards Fractal is higher than previous upward Fractal AND latest downward Fractal is also higher than previous downward Fractal - then it is a BUY trade.

Can anybody help to implement this logic?
Big thanks in advance!
-
@mmaarits This is the way to do it.

-
Okay, I created shared project. Link to the project is https://fxdreema.com/shared/tb6ewhA5