Extract value from 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.
-
Here are some extra options, but only for custom indicators. In my MetaTrader I can't find Fractals available as a custom indicator.
http://prntscr.com/9cbgotOtherwise you need "for" loop where you can check each candle starting from the current one, break the loop when the right one is found and get it's data. This is how the last option in the screenshot works, but only for custom indicators. I have no plans to make these options available for each built-in indicator, because... because for now I don't want to put more options in each indicator.
-
Thanks Radoslav. I'll try to do it with a custom fractal and we'll see...