My rules file places a £5 fixed lay if the lay price is <12.5 and a £60 liability lay if the lay price is >12. I can't get it any more precise because the Fixed Odds condition counter only accepts tick values. I have matched/unmatched bets =0 conditions. Bet Angel today placed two trades at exactly the same time:
04/03/2026 17:36:35: [G_Auto 1] : £ 5.00 Lay bet placed on 6. Swift Omerta at 12. Entirely unmatched when it initially reached the market. Ref: 420600453521
04/03/2026 17:36:35: [G_Auto 1] : £ 5.22 Lay bet placed on 6. Swift Omerta at 12.5. Fully matched at 12.2614942528736. Ref: 420600453488
The £5 fixed lay was later matched (although there's no mention in the log). Fortunately the lay lost, but is there a way to achieve my objective without creating an odds gap in which no lays would be placed?
Avoiding double jeopardy
When I have two rules and only want one to trigger, for each rule I have it set a market signal when it triggers. E.g. set signal Layed = 1.
And then on each rule I have a condition that the Signal Layed is not set with a value.
That way, only one of my rules can ever run in that market.
Hope that makes sense.
And then on each rule I have a condition that the Signal Layed is not set with a value.
That way, only one of my rules can ever run in that market.
Hope that makes sense.
Another option is to add a 'Number of place bet triggers condition' to each to test the number of triggers on the selection or market is equal to 0
https://www.betangel.com/user-guide/num ... ggers.html
https://www.betangel.com/user-guide/num ... ggers.html
-
fishtownraider
- Posts: 100
- Joined: Mon Feb 20, 2023 3:05 pm
Thankyou, both, although I think the problem with either of those solutions might be that the two lays seem to have been placed simultaneously, in which case the number of triggers at the time of placement would be zero. Otherwise, I think my two conditions re matched and unmatched bets would have caught it, wouldn't they?
EDIT: The simplest way to avoid it might be to add a 'greater than or equal to' option in the Fixed Odds Condition options. (Not sure if that would work either, though, with simultaneous placings.)
EDIT: The simplest way to avoid it might be to add a 'greater than or equal to' option in the Fixed Odds Condition options. (Not sure if that would work either, though, with simultaneous placings.)
Using matched/unmatched bet condition require waiting for information being returned to your PC by Betfair, by which time you may have refreshed the markets dozens of timesfishtownraider wrote: ↑Thu Mar 05, 2026 10:46 amThankyou, both, although I think the problem with either of those solutions might be that the two lays seem to have been placed simultaneously, in which case the number of triggers at the time of placement would be zero. Otherwise, I think my two conditions re matched and unmatched bets would have caught it, wouldn't they?
EDIT: The simplest way to avoid it might be to add a 'greater than or equal to' option in the Fixed Odds Condition options. (Not sure if that would work either, though, with simultaneous placings.)
Where as both the methods given to you above are set locally - so market is refreshed rules are checked in order, if the first rule triggers the second can't
if the first doesn't trigger and second one does the next refresh (possibly just 20ms later) the first rule can no longer trigger
-
fishtownraider
- Posts: 100
- Joined: Mon Feb 20, 2023 3:05 pm
Oh, I see. Thanks very much; I'll do that. Should I remove the matched/unmatched conditions now as unnecessary complications?Dallas wrote: ↑Thu Mar 05, 2026 11:00 amUsing matched/unmatched bet condition require waiting for information being returned to your PC by Betfair, by which time you may have refreshed the markets dozens of timesfishtownraider wrote: ↑Thu Mar 05, 2026 10:46 amThankyou, both, although I think the problem with either of those solutions might be that the two lays seem to have been placed simultaneously, in which case the number of triggers at the time of placement would be zero. Otherwise, I think my two conditions re matched and unmatched bets would have caught it, wouldn't they?
EDIT: The simplest way to avoid it might be to add a 'greater than or equal to' option in the Fixed Odds Condition options. (Not sure if that would work either, though, with simultaneous placings.)
Where as both the methods given to you above are set locally - so market is refreshed rules are checked in order, if the first rule triggers the second can't
if the first doesn't trigger and second one does the next refresh (possibly just 20ms later) the first rule can no longer trigger
If there sole purpose was to ensure only one of the rules triggers then yes they can be be removed as they will be doing nothing.fishtownraider wrote: ↑Thu Mar 05, 2026 11:28 amOh, I see. Thanks very much; I'll do that. Should I remove the matched/unmatched conditions now as unnecessary complications?Dallas wrote: ↑Thu Mar 05, 2026 11:00 amUsing matched/unmatched bet condition require waiting for information being returned to your PC by Betfair, by which time you may have refreshed the markets dozens of timesfishtownraider wrote: ↑Thu Mar 05, 2026 10:46 amThankyou, both, although I think the problem with either of those solutions might be that the two lays seem to have been placed simultaneously, in which case the number of triggers at the time of placement would be zero. Otherwise, I think my two conditions re matched and unmatched bets would have caught it, wouldn't they?
EDIT: The simplest way to avoid it might be to add a 'greater than or equal to' option in the Fixed Odds Condition options. (Not sure if that would work either, though, with simultaneous placings.)
Where as both the methods given to you above are set locally - so market is refreshed rules are checked in order, if the first rule triggers the second can't
if the first doesn't trigger and second one does the next refresh (possibly just 20ms later) the first rule can no longer trigger
But if they were there for any other reason you might still need them
