To work out if this is right, run on visual backtest, and check if once every candle when the condition is true you get a trade, otherwise, you get none.
@krushna correcto, esta opción es la adecuada creo yo. Después de este bloque puedes poner el bloque de cerrar todos los trades o bien que antes se cumplan otras condiciones también como si el saldo total o de algún grupo de trades sea positivo, no sé, hay muchas opciones que puedes utilizar
In the communication section (yellow), you will find them, FX created add a terminal variable and receive on a different robot, but only on same terminal.
You need to separate those blocks. Blocks 1 and 2 are correctly connected. However, blocks 3 an4 need to be used in a separate block tree that needs to be headed by a pink 'for each position' block on top.