Take trade above or below last Fractal level
-
Hi, I have managed to get the last fractal values correctly as they print on the screen. This is part of a bigger EA but I have simplified as I can't get this section to work.
I have these last fractal values as variables. I would like to use them as price points that a candle must be above or below before a trade can be opened. For instance, for a buy the candle open price level of candle ID 1 must be below the price value of the last up Fractal. The opposite for sells.
I have been working on this for weeks and no further ahead so any help would be very much appreciated.
Many thanks
-
@ringman The problem is that blocks 3 and 7 are comparing a fractal that is not the one stored on block 5. What you need to do is comparing variables Fup and Fdown as different from 0 instead.
-
@l-andorrà Thank you for looking at this and your reply. I have made the changes and it is still not working unfortunately.
https://fxdreema.com/shared/ESSZIaJdb
Maybe this image will help

-
@ringman Your logic is correct. The issue should be anywhere else in your whole project.