Cancel unmatched trigger

Please post any questions regarding the program here.

Moderator: 2020vision

Cancel unmatched trigger

Postby Ian1506 » Sun Dec 06, 2015 11:27 am

Hi folks.
I am using excel to LAY-IP at set odds a minute before the off and will let the bets go in play.

As soon as the first bet is matched I would like to cancel all the remaining bets and not place any furher bets.

Below is the lay bet part of the trigger but I have no idea how to word the cancel unmatched part.

=IF(AND(Time<=begin_after,$E$11<>"Suspended"),"LAY-IP",...................

When the lay bets are sent there will be a bet reference so I am guessing something will be dependent on the Matched Stake column. (Of course I could be wrong about that too)

Any help is gratefully accepted
Ian1506
 
Posts: 38
Joined: Fri Jun 10, 2011 3:52 am
Location: Australia

Re: Cancel unmatched trigger

Postby 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",...................)
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Re: Cancel unmatched trigger

Postby Ian1506 » Mon Dec 07, 2015 8:28 am

Thanks for the really quick reply Captain. I'll give it a shot. Cheers Ian
Ian1506
 
Posts: 38
Joined: Fri Jun 10, 2011 3:52 am
Location: Australia


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 55 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.