In helping me of the script of Levitikon on OCO orders and the base script MultipleSymbol on GitHub, I try to applicate at this two fusionned code, multiple level of Take-Profit and Quantity foreach.

In the Backtest Below when you delet from line 137 at 146, all is good, orders are well sended and triggered. But if you let the code like it is, this become the chaos. However, I have modified the code to separate relative orders for the level 1 of take-profit and the 2. I don't see really where i'am wrong.