Ok. In that case you need an array where the ticket numbers of those trades are to be selected. I'm afraid you will need a programmer to do it. I cannot be of more help in this case.
@siyanda Ok so you mean there will be several open trades and all of them will have their corresponding Sl levels, right? Then all those SL levels should be changed to new price levels as new candles are formed on the chart, but all of them will be independent SL levels. Is that what you want?