Is a Partially matched bet classed as both matched and unmatched?
I want to trigger a Place SP bet but it tries to place it as its getting matched when the stake is less than the minimum £2 back stake. I am laying first then closing my position with a place at sp bet (not take sp).
How can I mke sure it triggers after the bet is fully matched if BA still thinks that the partially matched bet has been fully matched? The automation is set to trigger when there is a matched bet. But BA classes the partial matched bet at matched when it is not fully matched, and the sp bet cant trigger if the partially matched bet part is less than £2 on the back side.
See my problem here:
viewtopic.php?p=357080#p357080
I have tried to send a private message to Dallas but it wont send, its stuck in Outbox.
Is a Partially matched bet classed as both matched and unmatched?
- jamesedwards
- Posts: 4367
- Joined: Wed Nov 21, 2018 6:16 pm
If a bet is partially taken then you will have one matched bet and one unmatched bet. Perhaps you could use a condition that [matched = 1] AND [unmatched = 0] for your trigger?gstar1975 wrote: ↑Thu Jun 06, 2024 4:43 pmIs a Partially matched bet classed as both matched and unmatched?
I want to trigger a Place SP bet but it tries to place it as its getting matched when the stake is less than the minimum £2 back stake. I am laying first then closing my position with a place at sp bet (not take sp).
How can I mke sure it triggers after the bet is fully matched if BA still thinks that the partially matched bet has been fully matched? The automation is set to trigger when there is a matched bet. But BA classes the partial matched bet at matched when it is not fully matched, and the sp bet cant trigger if the partially matched bet part is less than £2 on the back side.
See my problem here:
viewtopic.php?p=357080#p357080
I have tried to send a private message to Dallas but it wont send, its stuck in Outbox.
The 'outbox' is where your message sits until the recipient reads it. It will move to 'sent folder' when Dallas opens it. He's a very busy man.

Thanks James. I was thinking of using unmatched bet condition.jamesedwards wrote: ↑Thu Jun 06, 2024 5:06 pmIf a bet is partially taken then you will have one matched bet and one unmatched bet. Perhaps you could use a condition that [matched = 1] AND [unmatched = 0] for your trigger?gstar1975 wrote: ↑Thu Jun 06, 2024 4:43 pmIs a Partially matched bet classed as both matched and unmatched?
I want to trigger a Place SP bet but it tries to place it as its getting matched when the stake is less than the minimum £2 back stake. I am laying first then closing my position with a place at sp bet (not take sp).
How can I mke sure it triggers after the bet is fully matched if BA still thinks that the partially matched bet has been fully matched? The automation is set to trigger when there is a matched bet. But BA classes the partial matched bet at matched when it is not fully matched, and the sp bet cant trigger if the partially matched bet part is less than £2 on the back side.
See my problem here:
viewtopic.php?p=357080#p357080
I have tried to send a private message to Dallas but it wont send, its stuck in Outbox.
The 'outbox' is where your message sits until the recipient reads it. It will move to 'sent folder' when Dallas opens it. He's a very busy man.![]()
If i have it set to Matched = 1 and I have more than 1 matched bet so it thinks 2 are matched would it still trigger or should I just set it to greater than 0 rather than = 1?
UPDATE: Now working as expected thank you James.
Last edited by gstar1975 on Thu Jun 06, 2024 5:49 pm, edited 1 time in total.
- jamesedwards
- Posts: 4367
- Joined: Wed Nov 21, 2018 6:16 pm
Yes, if Guardian can see 2 matched bets then "=1" won't trigger.gstar1975 wrote: ↑Thu Jun 06, 2024 5:09 pmThanks James. I was thinking of using unmatched bet condition.jamesedwards wrote: ↑Thu Jun 06, 2024 5:06 pmIf a bet is partially taken then you will have one matched bet and one unmatched bet. Perhaps you could use a condition that [matched = 1] AND [unmatched = 0] for your trigger?gstar1975 wrote: ↑Thu Jun 06, 2024 4:43 pmIs a Partially matched bet classed as both matched and unmatched?
I want to trigger a Place SP bet but it tries to place it as its getting matched when the stake is less than the minimum £2 back stake. I am laying first then closing my position with a place at sp bet (not take sp).
How can I mke sure it triggers after the bet is fully matched if BA still thinks that the partially matched bet has been fully matched? The automation is set to trigger when there is a matched bet. But BA classes the partial matched bet at matched when it is not fully matched, and the sp bet cant trigger if the partially matched bet part is less than £2 on the back side.
See my problem here:
viewtopic.php?p=357080#p357080
I have tried to send a private message to Dallas but it wont send, its stuck in Outbox.
The 'outbox' is where your message sits until the recipient reads it. It will move to 'sent folder' when Dallas opens it. He's a very busy man.![]()
If i have it set to Matched = 1 and I have more than 1 matched bet so it thinks 2 are matched would it still trigger or should I just set it to greater than 0 rather than = 1?
-
- Posts: 1676
- Joined: Fri Nov 20, 2015 9:38 am
You could capture NetStake and condition on that?
I tend to use netstake to test my position. So this is a good suggestion.
Please see abovejamesedwards wrote: ↑Thu Jun 06, 2024 5:15 pmYes, if Guardian can see 2 matched bets then "=1" won't trigger.gstar1975 wrote: ↑Thu Jun 06, 2024 5:09 pmThanks James. I was thinking of using unmatched bet condition.jamesedwards wrote: ↑Thu Jun 06, 2024 5:06 pm
If a bet is partially taken then you will have one matched bet and one unmatched bet. Perhaps you could use a condition that [matched = 1] AND [unmatched = 0] for your trigger?
The 'outbox' is where your message sits until the recipient reads it. It will move to 'sent folder' when Dallas opens it. He's a very busy man.![]()
If i have it set to Matched = 1 and I have more than 1 matched bet so it thinks 2 are matched would it still trigger or should I just set it to greater than 0 rather than = 1?
What does this mean? Store NetStake and then do what? What condition would I add? My brain is completely fried at the moment. It seems I can never get my ideas to work on Betangel or any software I use, its not the fault of BA its my in ability to transfer my ideas into the software.
So i think what is happening is I am getting partially matched then price moves away from the partially matched price then the SP bet is triggered and then the rest was taken after the sp bet was placed. So if I add another trigger or 2 then that should hopefully solve the problem.
But then if I get it to trigger more than once will it fire in double the net stake? Yes it did
But then if I get it to trigger more than once will it fire in double the net stake? Yes it did
How do I trigger a place sp bet for partially unmatched lay bets?
The scenario:
I place a lay bet it gets partially matched, I have a trigger to place an sp bet once the bet it matched, sometimes it triggers the sp bet but for only the partially matched bet, then either the rest of the bet gets matched or it doesnt but then I am left with a bigger liability if the bet is not fully taken and the opposing sp bet doesnt get placed. Yes I can condition the net stake to trigger the sp bet only when the bet is fully matched but then I am open to a higher liability than I would wish for. If it gets fully matched right as the market is suspended it might not have enough time to trigger the sp bet.
I have restrict refresh on 185 secs before and 900 secs after, and set to 20ms.
Would a fill or kill, kill the unmatched part of the bet?
This only happens about once every 100 markets but the loss from that one market could wipe out my whole profit or more.
The scenario:
I place a lay bet it gets partially matched, I have a trigger to place an sp bet once the bet it matched, sometimes it triggers the sp bet but for only the partially matched bet, then either the rest of the bet gets matched or it doesnt but then I am left with a bigger liability if the bet is not fully taken and the opposing sp bet doesnt get placed. Yes I can condition the net stake to trigger the sp bet only when the bet is fully matched but then I am open to a higher liability than I would wish for. If it gets fully matched right as the market is suspended it might not have enough time to trigger the sp bet.
I have restrict refresh on 185 secs before and 900 secs after, and set to 20ms.
Would a fill or kill, kill the unmatched part of the bet?
This only happens about once every 100 markets but the loss from that one market could wipe out my whole profit or more.
-
- Posts: 1676
- Joined: Fri Nov 20, 2015 9:38 am
Sorry, got quite a few things going on so may not have fully understood what you are doing / asking but I think in above scenario with a partially matched bet you could.
1. when placing the other side of the bet (conditioning on netstake) make sure you also cancel the unmatched part of the bet before placing the opposing bet.
And / Or
2. Split the original bet into batches using the fill / kill functionality to reduce risk of exposure you mention above. And make sure you run the Take SP rule before the off on whatever side of the book you have exposure on (this may mean cancelling of the original unmatched bet before you do so.
1. when placing the other side of the bet (conditioning on netstake) make sure you also cancel the unmatched part of the bet before placing the opposing bet.
And / Or
2. Split the original bet into batches using the fill / kill functionality to reduce risk of exposure you mention above. And make sure you run the Take SP rule before the off on whatever side of the book you have exposure on (this may mean cancelling of the original unmatched bet before you do so.
A couple of conditions that may help you out.
Store value condition > unmatched bets information
Or
Unmatched bet amounts
Both of these can be set to back or lay.
It also advised to add a cancel rule for unmatched bets before greening / taking SP.
What I would do is copy the take sp rule and change that to a cancel rule for unmatched bets.
Then add a unmatched bet condition the selection = 0 to the take sp rule.
The cancel rule should be before the take sp rule.
Store value condition > unmatched bets information
Or
Unmatched bet amounts
Both of these can be set to back or lay.
It also advised to add a cancel rule for unmatched bets before greening / taking SP.
What I would do is copy the take sp rule and change that to a cancel rule for unmatched bets.
Then add a unmatched bet condition the selection = 0 to the take sp rule.
The cancel rule should be before the take sp rule.
I cant use batching in Excel. But the other suggestions are good and I have thought about those, but if i cancel the remaining unmatched bets I maybe altering the long term P/L in a negative way as this is where I feel the value position is and if i cancel I am reducing potential profit. Needs more sample and testing to confirm. It may all cancel each other out over the long term anyway, the most naked I could go is just placing the lay bets, but found this to be very volatile, and wanted a less volatile less emotional roller coaster type approach, which the closing of entries seems to do. Thanks for your help. It certainly is a Schrödinger's cat problem, and maybe unsolvable.sionascaig wrote: ↑Fri Jun 07, 2024 10:10 amSorry, got quite a few things going on so may not have fully understood what you are doing / asking but I think in above scenario with a partially matched bet you could.
1. when placing the other side of the bet (conditioning on netstake) make sure you also cancel the unmatched part of the bet before placing the opposing bet.
And / Or
2. Split the original bet into batches using the fill / kill functionality to reduce risk of exposure you mention above. And make sure you run the Take SP rule before the off on whatever side of the book you have exposure on (this may mean cancelling of the original unmatched bet before you do so.