@Leolinkz You can do this:

Sorry for may late reply. Thank you very much for sharing.
@GTOAT777 You can use this condition on top of both 'buy/sell now' blocks.
I agree with sktsec.
Ok. Now it's clear to me. Now let's focus on that 'first trade'. We can store its ticket number into a variable as well as other requested info, but the problem is how many 'subsequent' trades are possible and when the first one is supposed to be closed so that a new 'first one' is open. Could you please elaborate?
You will need a specific structure to do that. There is no single block doing that. Are you familiar with variables?
Sorry for my late reply and congrats for making it! 
@juandavid713 Ya te he respondido en tu hilo.
No te entiendo del todo. ¿Quieres decir que te abra una segunda operación a una distancia x de la primera abierta y entonces sea con un lotaje superior? ¿Es eso?
@Alireza206n You need the line's name and put it here:

Below the condition block you then connect a 'close trades' block.
You need to use terminal variables to make a communication between terminals. You will need a programmer to do that part. This is why trying it with fxDreema is pointless.
jstap is right. You need to reset the variable. Could you please elaborate the part that doesn't work?
You need to use variables to do those lot size calculations. Are you familiar with variables?
Never tried that way to do it but I think it should work.
@Archer You can store the ticket number and open price of the manually open trade into variables and later compare the information to any other trade with a different ticket number in order to find that distance.
So if I understand it correctly, you do NOT want to open a market execution at the close price of that candle. You need the close and low prices of the closed candle to calculate SL and TP distances for a pending order that will be programmed ABOVE that same closed candle. Is that correct?
You will need variables to do that. Are you familiar with using variables?
If you are planning to use manually plotted trend lines, I recommend to give it a name that can be used later in fxDreema. You can do this:
That should help.
@Moon This is the second thread you created for the exact same question. Please don't duplicate threads.