@timmyhanke
Thank you for your help, I got it working...I wouldnt find this without your help.
There is a similar question: If I want to close some of the open positions and I want to use the group numbers, can I use multiple numbers in the group# input box? or I have to use more than one CLOSE TRADES blocks. Lets say I want to close only 1, 3, 6 and 7 out of 10 position.

