PriNova: The reason is that this script places two trades on every bar. There's a memory limit for the number of trades, so better reduce the number of simultaneously open trades, as you did in your first script.

Guiom: No, Z1 and Z2 do not use yet artificial intelligence functions. In fact we have not yet found a strategy that would really improve by AI, but we have also not yet systematically looked for it.