@ontrade If only the first trade of every new sequence is to be closed, you can do this:

@ontrade If only the first trade of every new sequence is to be closed, you can do this:

@fenixtrading You can do it this way:

@moses-2 That is anothr loop beacuse you need to check to past trades in order to condition the following one. This loop should be different from the previous one, though.
@seb-0 That is exactly the problem. I need the whole trades history. That can be a lot of trades to check. And that means a lot of calculation effort that can be simply un attainable in moment with high volatility.
@yerlin Ok. Now I get it. In that case you need a loop searching for past fractal to meet those conditions. I'm afraid loops are not my strong point. Maybe mr. roar would be able to help. He's very good at it.
@tradercompany Do this below all 'buy/sell now' blocks:

@tradercompany You need this below all buy/sell now blocks:

@upstatecashew Is this a miro's creation? It looks like it is. I'm afraid I cannot offer any help in this case.
@jazzybhai Yes, it works. Sadly, he can take some time to reply. Please be patient and you'll get your answer.
@fxtrader-mts The problem is identifying LL and HH. Its very easy to do it visually but we need strict rules defining what is a HH or a LL. Do you have any custom indocator doing it? Otherwise toy would have to create a whole structure just to identify them.
@yoloyacht Just select a fixed position with a filling colour for it:

Obviously you need to select 'yes'. 
@donnie Can you please share the link of the project instead. That screenshot is very limited to check the reason why it doesn't work.
@sm24 Can you please share the link of your project?
@ambrogio This is very weird. I strongly recommend you email the admin personally to let him know. I guess this can be a serious bug.
@juanitomejiar Then you need a loop searching for past data candle by candle. I'm afraid Ioops are not my field of expertise. I recommend you to ask for mr. roar's help. He's the most successful user here when creating loops.
@tjommas Sure. Just google 'FX Blue Personal Trade Copier'. It is very reliable and full of free features.
@umbrellamaker Certainly not a trivial thing to do. If I understand it correctly, every new candle should 'adjust' the value of the 0% level. Correct? But would the 100% level be stationary?
@rodrigo-ortuzar Here you can find the meaning of both elements:
https://admiralmarkets.com/education/articles/forex-indicators/zigzag-indicator
@yerlin When you say 'execute the input', do you mean open the trade? Please remember that a fractal does appear two candles AFTER that low price is identified as a fractal.
On the other hand, if I understand you correctly, that fractal woul be the SL. But then why do you need the fractal that you selected with that white arrow?