Closing of operations with profits.
-
Hi. I have an EA that opens many trades in a row, my idea is when I have a certain amount of trades open if they already have profits to close, that is, example:
I have 38 operations and of these there are 10 operations that have a profit of more than € 5, when 2 more operations open, as there are 40 I automatically close the operations that have a profit of € 5 or more. I have used this sequence of blocks but it doesn't work for me. Help, thank you very much.

-
@xyon126 You need to check that condition trade by trade. To do that you need a 'For each Trade' block below block 58 and Remove block 27.
-
@l-andorrà Hello @l-andorrà, is this what you say?
Thanks a lot.
-
@xyon126 Yes, but I see you are using 2 groups that were not present in the fisrt post. are those groups correctly defined where appropriate?
-
@l-andorrà If I understood your advice correctly, I have only varied blocks 57, 58 and 59 as I think you mentioned, the rest is the same (I have only renumbered the blocks)
-
@xyon126 Could you please share the link of the latest version?