How to get a value from the last fractals?
-
Hallo Radoslav,
I need some help from you again. I need to extract the HIGH & LOW values for the candle that formed the last DOWN FRACTAL and the same (HIGH & LOW values) for the candle that formed the last UP FRACTAL. I would like also to be able to pick the number of bars since the UP FACTAL (and the DOWN FRACTAL) formed. I used to do that kind of loops easily in amibroker with the use of barssince & valuewhen functions but i have no idea how to do that in mql4. Can you help me please and give me the setup of blocks for getting these values? Thanks in advance. -
Ok ... found how to do it.
-
I'm trying to do the same thing - how did you manage it?
-
For Fractals set Candle ID to at least 2... if I am not wrong. This indicator gives us nothing in the current candle and as I remember - in the previous candle as well.
How to get the latest positive value. Well, hardly possible with the built-in indicator. But for the "My indicators" option in "Condition" I have added extra options, check them.