Now you have 2 for cycles one in another, not one after another. Is this your idea...
At this hour of the day my mind doesn't work very well, but these are for loops and if something is wrong, it's probably something logical. But also these loop blocks are not very useful, you probably need to break the loop at some point.
You know, weeks ago I added some more options for My Indicators. These options - http://prntscr.com/aglznm The problem is that they are only for custom indicators and Fractals is a built-in indicator.