How to modify stop-losses of many orders in one direction?
-
I'm trying on the example "Add to Volume (every 10 pips)"
https://fxdreema.com/examples
change stop-loss from average price of bucket trades on every opened trade when new trades opened.
when 2nd trade is opened, I need to modify SL for 2 trades.
when 3-ed trade is opened, I need to modify SL for 3 trades and go on.
Can any body guide me how to program it? -
I recommend you to begin with this block:

This block searchs for all open trades right now and all future trades and calculates an average SL proce for all of them. If you read carefully its info window you will understand how it works and how to customize it.