by Captain Sensible » Sun Dec 06, 2015 2:58 pm
There's a trigger called CANCEL-ALL-MARKET that will do as it say cancel all bets within the market.
You could monitor the matched stake column W and fire the trigger either when that's greater than 0, i.e. part of the bet matched , and then send the CANCEL-ALL-MARKET trigger. If you wanted to only cancel when the bet was fully matched you'd just add another criteria of your stake equalling your matched stake i.e. AND(W5>0,W5=S5,.....etc (assuming S is a fixed value and not formula)
You'd just simply nest your current IF statement within that one
=IF(W5>0,"CANCEL-ALL-MARKET",IF(AND(Time<=begin_after,$E$11<>"Suspended"),"LAY-IP",...................)