@vijithtr Considering you want to close all open trades when a specific loss is hit, you need to do this instead:

@vijithtr Considering you want to close all open trades when a specific loss is hit, you need to do this instead:

The most efficient way is by storing the value of candle 0 into a variable. Then that value can be compared to any other future candle. Are you familiar with variable?
Then you essentially need an indicator, not a bot. Sadly, fxDreema is not programmed to create indicators. However, you can still create a bot doing that, but it will not be as effective as an indicator because of the tick execution issue. What you can do is a bot with a panel. Would that be acceptable?
@ivan-a ¿Cómo está configurado el bloque? Si está bien configurado, funciona a la perfección?
Gracias por tus palabras amables. Y me alegro de que hayas resuelto el problema. 
The last closed one, programmed one or open one?
@Fynot You can do that with variables. You can store the highest/lowest prices today into variables so that they can be normally compared to current price.
I don't fully understand what you exactly mean by: '..the line not move immediately but only from the next candle.' Could you please share a visual example?
@thusego The problem with that block is that we don't know the candles IDs forming the divergence. Maybe you should ask the admin how they could be found. With that info we can begin to work on the new filter.
@Traderlab Debes creara una constante en la que podrás escoger la cantidad de órdenes a programay y entonces la situas aquí:

More information is needed. What do toy exactly need?
I see they are reset immediately below those 'once a day' blocks. I guess you mean the one controlling the maximum of 3 tries, right. You can do it exactly in the same way. At the beginning of the next day.
The 'no trade' block can only block market executions, not pending orders as per the grid.
Just a few initial questions. Is the bot supposed to search for those signals only or will it open trades too? Are additional conditions supposed to be added to that MA crossing? Do you need the info to be available on each chart separately or on one only chart combined?
@alhammeed1990 You can select the number of orders in the grid here:

How many open trades will there be at the same time?
Debes usar dos variables separadas de tipo 'integer' (int). Una para las horas y la otra para los minutos. Entonces se puede usar en el optimizador.