@lomcio Then you can do this:

@granproducto That money management option is effective only for market execution trades, not for pending orders. What you want is a more complex structure you will have to create separatedly.
@elmerwence Here you have a model to begin with:
@4xfatigue Yes you can confirm a crossover this by specifying the candle ID 1:

@mantadiver I'm not sure that is possible. Did you do some search on the forums? I didn't find anything even close to what you need. I'm also interested in that question.
@kestra A loop is a structure searching for information in a loop sequence every signle tick. This is one of teh most difficult things to implement in programming in general.
@gallegu Si realmente quieres una martingala, la cosa se complica como no te imaginas. Te paso un enlace con mi propia martingala para que te hagas una idea de lo que estamos hablando:
https://fxdreema.com/shared/6o0uTdg3e
Tóamate una tila y estúdiatelo con tiempo, porque hay mucho curro para hacer. 
@ashley111 Ok. I will help you. However, me doing all the job is not the most efficient way for you to learn. :). Why don't you begin my a first try by using my suggestion and then we move on step by step?
@ferford The easiest way to do it is by using two consecutive blocks. For a buy:
@giusepatane Is the distance separating the TP and the SL exactly the same separating both buy and sell open price?
@technodroid These are my suggestions:
@4xfatigue You don't need to count ticks to confrim a crossing. Just select candle ID 1 as your reference crossing. That way the EA will not it is confirmed.
@fabiobioware Can you please confirm how those support/resistance lines are created? Manually or via the EA itself?
@bk7 Looking at those custom code blocks I'm afraid I cannot help.
I'm not a programmer so I don't understand what they do.
@bk7 It depends on how many open trades right now are being considered. Your target conditions can apply at the same time to all of them. This is why the structure can be trying to do it at the same time.
@fabiobioware Try to pick all those object by a loop with 'For each object'. On the other hand, whu do you need to draw so many lines?
@fabiobioware According to its info window:

I don't think this is the block you are looking for. You should try to create a specific structure to get that.
@technodroid Here you have a MACD main/signal lines' crossover:

@technodroid Can you please share the link to your project?