Guardian rule that closes all positions when a bet fully matched

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
User avatar
jamesedwards
Posts: 4928
Joined: Wed Nov 21, 2018 6:16 pm

Hi all,

In Guardian, what is the easiest way to close up all positions on a market once one bet has been fully matched?

Currently I have a rule set that closes up all my positions once I have one bet matched, but as you would expect often the full amount is not taken before Guardian closes up.

Even better if I can close up all other positions as soon as any money has been partially taken on a selection leaving the remainder of money on that selection to be taken if market allows.

Thanks in advance for any advice.
Jukebox
Posts: 1576
Joined: Thu Sep 06, 2012 8:07 pm

Do you really mean "close" or do you mean cancel any unmatched bets?
If you close trade as soon as only one bet is matched you will guarantee you lose the spread.
User avatar
jamesedwards
Posts: 4928
Joined: Wed Nov 21, 2018 6:16 pm

Jukebox wrote:
Tue Jan 07, 2020 11:02 pm
Do you really mean "close" or do you mean cancel any unmatched bets?
If you close trade as soon as only one bet is matched you will guarantee you lose the spread.
Yes sorry, I dont mean green up, I mean cancel all remaining unmatched bets.
Jukebox
Posts: 1576
Joined: Thu Sep 06, 2012 8:07 pm

Okay. For that you can use the rule 'Cancel All Unmatched Bets in Market' and put a condition on it 'Number of Matched Bets is Greater than 0' .
User avatar
jamesedwards
Posts: 4928
Joined: Wed Nov 21, 2018 6:16 pm

Jukebox wrote:
Wed Jan 08, 2020 9:34 pm
Okay. For that you can use the rule 'Cancel All Unmatched Bets in Market' and put a condition on it 'Number of Matched Bets is Greater than 0' .
Thats what I currently use but doesnt work 100% as it cancels all remaining unmatched as soon as any proportion of my stake on one selection is matched. Therefore I end up with lots of bets closed for much less stake than I want. I can't use cancel all remaining based on a value of matched either as my stake is based on book%. What I want to do is cancel all unmatched bets in the market apart from the selection that has been partially matched.

eg rule sets off a back for £100 on 10 selections in a market, selection A gets matched for £20 out of the £100 and currently it closes down all remaining unmatched including the remaining £80 on selection A. I want it to cancel all remaining unmatched on the other 9 selections, leaving the remaining £80 on selection A still up to be matched.
Jukebox
Posts: 1576
Joined: Thu Sep 06, 2012 8:07 pm

You could create a seperate 'Cancel All Unmatched Bets on Selection' rule for each selection, with two conditions: Condition1 Number of Matched bets on selection = 0, Condition2 Number of Matched bets on Market is Greater than 0
(it easy to copy a rule as many times as you want and then just change the selection number)

Or you could create a single 'Cancel All Unmatched Bets on the Selection rule,use for ANY Selection, Conditions 1and 2 as above plus condition3 Number of Unmatched bets on the selection is greater than 0, Allow rule to trigger multiple times with just a second or less between firings.

In both case the rule will sit dormant until something gets matched and then cancels unmatched bets on all selections except the one with the match.
User avatar
jamesedwards
Posts: 4928
Joined: Wed Nov 21, 2018 6:16 pm

Jukebox wrote:
Wed Jan 08, 2020 11:36 pm
You could create a seperate 'Cancel All Unmatched Bets on Selection' rule for each selection, with two conditions: Condition1 Number of Matched bets on selection = 0, Condition2 Number of Matched bets on Market is Greater than 0
(it easy to copy a rule as many times as you want and then just change the selection number)

Or you could create a single 'Cancel All Unmatched Bets on the Selection rule,use for ANY Selection, Conditions 1and 2 as above plus condition3 Number of Unmatched bets on the selection is greater than 0, Allow rule to trigger multiple times with just a second or less between firings.

In both case the rule will sit dormant until something gets matched and then cancels unmatched bets on all selections except the one with the match.
Thanks. The first one would work best although will be a pain to set up as I have many selections.
Jukebox
Posts: 1576
Joined: Thu Sep 06, 2012 8:07 pm

jameegray1 wrote:
Thu Jan 09, 2020 12:02 am
Thanks. The first one would work best although will be a pain to set up as I have many selections.
Its not that bad set up selection 1 carefully complete with all conditions and then use the duplicate function as many times as required, then its just a matter of changing the selection on each one.
Post Reply

Return to “Bet Angel for newbies / Getting started”