Hi
The easy way is a single trigger:
action: trade out
selections: all matching selections
also if you have not seen it have a look at
this article.
I use the following triggers for hedging multiple back and lay unhedged bets on a selection.
after all unhedged trades are completed and no unmatched bets remain:
for a selection with a positive profit_loss
lay
price: lay_price
amount: profit_loss/lay_price
condition: selections profit/loss is greater than 0.03
and appropriate matched / unmatched checking conditions etc.
for a selection with a negative profit_lossbackprice: back_priceamount: ABS(profit_loss)/back_pricecondition: selections profit/loss is less than -0.03and appropriate matched / unmatched checking conditions etc.